src/syndp/utils/functions.py
def make_extended_vector(vector : np.array):
    '''
    This function takes a given function and outputs a extended version of the vector
    The extended values are the linear interpolated values
    '''
    length_of_timestep = len(vector)
    xs = [2*x+1 for x in range(0,length_of_timestep)]
    new_xs = [x for x in range(0,2*length_of_timestep)]
    
    f = interpolate.interp1d(xs, vector, fill_value='extrapolate')
    
    return f(new_xs)

    This function takes a given function and outputs a extended version of the vector
    The extended values are the linear interpolated values
    
This function takes a given function and outputs a extended version of the vector
The extended values are the linear interpolated values
This function takes a given function and outputs a extended version of the vector The extended values are the linear interpolated values
def make_extended_vector(vector : np.array):
    length_of_timestep = len(vector)
    xs = [2*x+1 for x in range(0,length_of_timestep)]
    new_xs = [x for x in range(0,2*length_of_timestep)]
    f = interpolate.interp1d(xs, vector, fill_value='extrapolate')
    return f(new_xs)
def make_extended_vector ( vector : np . array ) : length_of_timestep = len ( vector ) xs = [ 2 * x + 1 for x in range ( 0 , length_of_timestep ) ] new_xs = [ x for x in range ( 0 , 2 * length_of_timestep ) ] f = interpolate . interp1d ( xs , vector , fill_value = 'extrapolate' ) return f ( new_xs )
This function takes a given function and outputs a extended version of the vector
The extended values are the linear interpolated values
This function takes a given function and outputs a extended version of the vector The extended values are the linear interpolated values
'''
    This function takes a given function and outputs a extended version of the vector
    The extended values are the linear interpolated values
    '''
vector
np.array