def create_uniform_prior_for(parameter):
    """
	Use for location variables (position)
	The uniform prior gives equal weight in non-logarithmic scale.
	
	:param parameter: Parameter to create a prior for. E.g. xspowerlaw.mypowerlaw.PhoIndex
	"""
    spread = parameter.max - parameter.min
    low = parameter.min
    return lambda x: x * spread + low
