Lv2_ps_method.py
def oversample(factor,counts):
    """
    Perform oversampling on the data. Return the padded array of counts.

    factor - N-times oversampling; factor = 5 means 5x oversampling
    counts - array of counts from the binned data
    """
    if type(factor) != int:
        raise TypeError("Make sure the second entry in the array is an integer!")
    pad_zeros = np.zeros(len(counts)*(factor-1))
    oversampled_counts = np.array(list(counts) + list(pad_zeros))
    padded_counts = padding(oversampled_counts)

    return padded_counts

    Perform oversampling on the data. Return the padded array of counts.

    factor - N-times oversampling; factor = 5 means 5x oversampling
    counts - array of counts from the binned data
    
Perform oversampling on the data. Return the padded array of counts.
factor - N-times oversampling; factor = 5 means 5x oversampling
counts - array of counts from the binned data
Perform oversampling on the data . Return the padded array of counts . factor - N - times oversampling ; factor = 5 means 5x oversampling counts - array of counts from the binned data
def oversample(factor,counts):
    if type(factor) != int:
        raise TypeError("Make sure the second entry in the array is an integer!")
    pad_zeros = np.zeros(len(counts)*(factor-1))
    oversampled_counts = np.array(list(counts) + list(pad_zeros))
    padded_counts = padding(oversampled_counts)
    return padded_counts
def oversample ( factor , counts ) : if type ( factor ) != int : raise TypeError ( "Make sure the second entry in the array is an integer!" ) pad_zeros = np . zeros ( len ( counts ) * ( factor - 1 ) ) oversampled_counts = np . array ( list ( counts ) + list ( pad_zeros ) ) padded_counts = padding ( oversampled_counts ) return padded_counts
Perform oversampling on the data.
Perform oversampling on the data .
"""
    Perform oversampling on the data. Return the padded array of counts.

    factor - N-times oversampling; factor = 5 means 5x oversampling
    counts - array of counts from the binned data
    """
factor
counts