ensemble_hic/setup_functions.py
def make_random_structures(bead_radii, n_structures):
    """
    Makes a set of random structures with bead positions drawn
    from a normal distribution

    :param bead_radii: bead radii for each bead
    :type bead_radii: :class:`numpy.ndarray`

    :param n_structures: number of ensemble members
    :type n_structures: int

    :returns: a population of random structures
    :rtype: :class:`numpy.ndarray`
    """

    d = bead_radii.mean() * len(bead_radii) ** 0.333
    X = np.random.normal(scale=d, size=(n_structures, len(bead_radii), 3))
    
    return X.ravel()

    Makes a set of random structures with bead positions drawn
    from a normal distribution

    :param bead_radii: bead radii for each bead
    :type bead_radii: :class:`numpy.ndarray`

    :param n_structures: number of ensemble members
    :type n_structures: int

    :returns: a population of random structures
    :rtype: :class:`numpy.ndarray`
    
Makes a set of random structures with bead positions drawn
from a normal distribution
Makes a set of random structures with bead positions drawn from a normal distribution
def make_random_structures(bead_radii, n_structures):
    d = bead_radii.mean() * len(bead_radii) ** 0.333
    X = np.random.normal(scale=d, size=(n_structures, len(bead_radii), 3))
    return X.ravel()
def make_random_structures ( bead_radii , n_structures ) : d = bead_radii . mean ( ) * len ( bead_radii ) ** 0.333 X = np . random . normal ( scale = d , size = ( n_structures , len ( bead_radii ) , 3 ) ) return X . ravel ( )
Makes a set of random structures with bead positions drawn
from a normal distribution
Makes a set of random structures with bead positions drawn from a normal distribution
"""
    Makes a set of random structures with bead positions drawn
    from a normal distribution

    :param bead_radii: bead radii for each bead
    :type bead_radii: :class:`numpy.ndarray`

    :param n_structures: number of ensemble members
    :type n_structures: int

    :returns: a population of random structures
    :rtype: :class:`numpy.ndarray`
    """
a population of random structures
a population of random structures
:class:`numpy.ndarray`
bead_radii
bead radii for each bead
bead radii for each bead
n_structures
number of ensemble members
number of ensemble members