Chrono simulation
This class includes the following methods:
- chrono_simulation.add_noise(signal, snr_db)
- chrono_simulation.simulate_protocol(file_name, folder, sampling_frequency='H', cycle_days=[], activity_period=[], signal_type='sine', noise=False, snr_db=20, only_positive=True, remove_file=False)
Simulate a protocol
- Parameters:
file_name (str) – The name of the file
folder (str) – The folder where the file will be saved
sampling_frequency (str) – The sampling frequency of the protocol in pandas format (e.g. ‘30T’ for 30 minutes), defaults to ‘H’
activity_period (int) – The period of the sin curve (in hours), defaults to 24
signal_type (str) – The type of the signal (sine, square, sawtooth), defaults to ‘sine’.
noise (bool) – If True, noise will be added to the signal, defaults to None
snr_db (float) – The signal to noise ratio in dB, defaults to 0.1
remove_file (bool) – If True, the file will be removed if it already exists, defaults to False
- Returns:
The simulated activity data
- Return type:
list