ensemble_hic/setup_functions.py
def expspace(min, max, a, N):
    """
    Helper function which creates an array of exponentially spaced values

    I use this to create temperature schedules for 
    replica exchange simulations.
    
    :param min: minimum value
    :type min: float

    :param max: maximum value
    :type max: float

    :param a: rate parameter
    :type a: float

    :param N: desired # of values (including min and max)
    :type N: int

    :returns: array of exponentially spaced numbers
    :rtype: :class:`numpy.ndarray`
    """
    g = lambda n: (max - min) / (np.exp(a*(N-1.0)) - 1.0) * (np.exp(a*(n-1.0)) - 1.0) + float(min)
    
    return np.array(map(g, np.arange(1, N+1)))

    Helper function which creates an array of exponentially spaced values

    I use this to create temperature schedules for 
    replica exchange simulations.
    
    :param min: minimum value
    :type min: float

    :param max: maximum value
    :type max: float

    :param a: rate parameter
    :type a: float

    :param N: desired # of values (including min and max)
    :type N: int

    :returns: array of exponentially spaced numbers
    :rtype: :class:`numpy.ndarray`
    
Helper function which creates an array of exponentially spaced values
I use this to create temperature schedules for
replica exchange simulations.
Helper function which creates an array of exponentially spaced values I use this to create temperature schedules for replica exchange simulations .
def expspace(min, max, a, N):
    g = lambda n: (max - min) / (np.exp(a*(N-1.0)) - 1.0) * (np.exp(a*(n-1.0)) - 1.0) + float(min)
    return np.array(map(g, np.arange(1, N+1)))
def expspace ( min , max , a , N ) : g = lambda n : ( max - min ) / ( np . exp ( a * ( N - 1.0 ) ) - 1.0 ) * ( np . exp ( a * ( n - 1.0 ) ) - 1.0 ) + float ( min ) return np . array ( map ( g , np . arange ( 1 , N + 1 ) ) )
Helper function which creates an array of exponentially spaced values
I use this to create temperature schedules for
replica exchange simulations.
Helper function which creates an array of exponentially spaced values I use this to create temperature schedules for replica exchange simulations .
"""
    Helper function which creates an array of exponentially spaced values

    I use this to create temperature schedules for 
    replica exchange simulations.
    
    :param min: minimum value
    :type min: float

    :param max: maximum value
    :type max: float

    :param a: rate parameter
    :type a: float

    :param N: desired # of values (including min and max)
    :type N: int

    :returns: array of exponentially spaced numbers
    :rtype: :class:`numpy.ndarray`
    """
array of exponentially spaced numbers
array of exponentially spaced numbers
:class:`numpy.ndarray`
min
None
max
None
a
None
N
desired # of values (including min and max)
desired # of values ( including min and max )