ivneuro.utils
A module with private helper functions.
Functions
Calculate the significant number of decimal positions to use to round a value. |
|
|
|
|
|
|
Module Contents
- ivneuro.utils.significant_decimal_positions(value)
Calculate the significant number of decimal positions to use to round a value.
Certains calculations, like vectorized operations that switch between decimal and binary systems, generate values with large amount of decimal positions that can interfiere with posterior operations (like aligments). This function keeps only the relevant amount of decimal positions.
- Parameters:
value (float) – Value to calculate the number of significant decimal positions.
- Returns:
Number of significant decimal positions, to be used as imput of numpy.round() .
- Return type:
int
- ivneuro.utils.generate_pink_noise(duration, sampling_frequency, seed)
- ivneuro.utils.generate_oscillatory_signal(frequency, duration, amplitude, sample_rate=1000)
- ivneuro.utils.add_signal_to_noise(noise, signal, timestamps)