def addParameter( self, k, r ):
if isinstance(r, six.string_types) or not isinstance(r, collections.Iterable):<EOL><INDENT>r = [ r ]<EOL><DEDENT>else:<EOL><INDENT>if isinstance(r, collections.Iterable):<EOL><INDENT>r = list(r)<EOL><DEDENT><DEDENT>self._parameters[k] = r<EOL>
Add a parameter to the experiment's parameter space. k is the
        parameter name, and r is its range.

        :param k: parameter name
        :param r: parameter range