ensemble_hic/setup_functions.py
def make_elongated_structures(bead_radii, n_structures):
    """
    Makes a set of fully elongated structures

    :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 fully elongated structures
    :rtype: :class:`numpy.ndarray`
    """
    X = [bead_radii[0]]
    for i in range(len(bead_radii) -1):
        X.append(X[-1] + bead_radii[i+1] + bead_radii[i])
    X = np.array(X) - np.mean(X)
    
    X = np.array([X, np.zeros(len(bead_radii)),
                  np.zeros(len(bead_radii))]).T[None,:]
    X = X.repeat(n_structures, 0).ravel().astype(float)

    return X

    Makes a set of fully elongated structures

    :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 fully elongated structures
    :rtype: :class:`numpy.ndarray`
    
Makes a set of fully elongated structures
Makes a set of fully elongated structures
def make_elongated_structures(bead_radii, n_structures):
    X = [bead_radii[0]]
    for i in range(len(bead_radii) -1):
        X.append(X[-1] + bead_radii[i+1] + bead_radii[i])
    X = np.array(X) - np.mean(X)
    X = np.array([X, np.zeros(len(bead_radii)),
                  np.zeros(len(bead_radii))]).T[None,:]
    X = X.repeat(n_structures, 0).ravel().astype(float)
    return X
def make_elongated_structures ( bead_radii , n_structures ) : X = [ bead_radii [ 0 ] ] for i in range ( len ( bead_radii ) - 1 ) : X . append ( X [ - 1 ] + bead_radii [ i + 1 ] + bead_radii [ i ] ) X = np . array ( X ) - np . mean ( X ) X = np . array ( [ X , np . zeros ( len ( bead_radii ) ) , np . zeros ( len ( bead_radii ) ) ] ) . T [ None , : ] X = X . repeat ( n_structures , 0 ) . ravel ( ) . astype ( float ) return X
Makes a set of fully elongated structures
Makes a set of fully elongated structures
"""
    Makes a set of fully elongated structures

    :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 fully elongated structures
    :rtype: :class:`numpy.ndarray`
    """
a population of fully elongated structures
a population of fully elongated 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