pytimbre.spectral.time_histories.OverallLevelTimeHistory¶
- class pytimbre.spectral.time_histories.OverallLevelTimeHistory¶
Bases:
objectThis class defines the collection of overall levels as a dictionary. As additional levels are defined and added to the LevelMetrics class they will be added to the dictionary. This object contains a list of times and a dictionary that contains a list of levels.
- __init__()¶
Initialize the data within the class
Methods
__init__()Initialize the data within the class
This function extracts the data from the spectral time history and builds the data for the class with the LevelMetrics class.
to_dataframe()Attributes
durationframe_builderheaderintegration_timemetricsThe number of samples per second of evey TimeHistory metric.
timestimes_past_midnight- static from_SpectralTimeHistory(sth: SpectralTimeHistory)¶
This function extracts the data from the spectral time history and builds the data for the class with the LevelMetrics class. :param sth: The spectral data over time :type sth: SpectralTimeHistory :return: The collection of levels that were calculated from the spectrum objects at each time frame :rtype: OverallLevelTimeHistory
- property time_history_sample_rate¶
The number of samples per second of evey TimeHistory metric.