def frequency_domain_transform(time_domain_waveform, times):
    sampling_frequency = 1 / (times[1] - times[0])
    frequencies = None
    frequency_domain_strain = dict()
    for key in time_domain_waveform:
        frequency_domain_strain[key], frequencies =\
            utils.nfft(time_domain_waveform[key], sampling_frequency)

    return frequency_domain_strain, frequencies
Example #2
0
def frequency_domain_transform(time_domain_strain, times, window_type=None):
    sampling_frequency = 1 / (times[1] - times[0])
    frequencies = None

    if window_type != None:
        window = get_window(window_type, time_domain_strain.size)
        time_domain_strain = time_domain_strain * window

    frequency_domain_strain, frequencies = utils.nfft(time_domain_strain,
                                                      sampling_frequency)
    return frequency_domain_strain, frequencies
def frequency_domain_transform(time_domain_strain, times):
    sampling_frequency = 1 / (times[1] - times[0])
    frequencies = None
    frequency_domain_strain = dict()

    for key in time_domain_strain:
        # window = get_window('hann', time_domain_strain[key].size)
        # time_domain_strain[key] = time_domain_strain[key] * window
        frequency_domain_strain[key], frequencies =\
          utils.nfft(time_domain_strain[key], sampling_frequency)

    return frequency_domain_strain, frequencies
def frequency_domain_transform(time_domain_strain, times, window_type=None):
    sampling_frequency = 1 / (times[1] - times[0])
    frequencies = None
    frequency_domain_strain = dict()

    for key in time_domain_strain:
        if window_type != None:
            window = get_window(window_type, time_domain_strain[key].size)
            time_domain_strain[key] = time_domain_strain[key] * window
        frequency_domain_strain[key], frequencies = utils.nfft(
            time_domain_strain[key], sampling_frequency)

    return frequency_domain_strain, frequencies
Example #5
0
def frequency_domain_transform(time_domain_strain, times):
    sampling_frequency = 1 / (times[1] - times[0])
    frequencies = None
    frequency_domain_strain = dict()

    for key in time_domain_strain:
        window = get_window(("tukey", 0.001), time_domain_strain[key].size)
        time_domain_strain[key] = time_domain_strain[key] * window

        frequency_domain_strain[key], frequencies = utils.nfft(
            time_domain_strain[key], sampling_frequency)

    return frequency_domain_strain, frequencies
def frequency_domain_transform(time_domain_strain, times):
    sampling_frequency = 1 / (times[1] - times[0])
    frequencies = None
    frequency_domain_strain, frequencies = utils.nfft(time_domain_strain,
                                                      sampling_frequency)
    return frequency_domain_strain, frequencies