MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_energy_thresholds()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::VectorXd>
void MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::set_energy_thresholds ( double  silent,
double  quiet,
double  moderate,
double  loud 
)
inline

Set energy level classification thresholds.

Parameters
silentThreshold for silent level
quietThreshold for quiet level
moderateThreshold for moderate level
loudThreshold for loud level

Definition at line 259 of file EnergyAnalyzer.hpp.

260 {
261 if (silent >= quiet || quiet >= moderate || moderate >= loud) {
262 error<std::invalid_argument>(Journal::Component::Yantra, Journal::Context::ComputeMatrix, std::source_location::current(), "Energy thresholds must be in ascending order");
263 }
264 m_silent_threshold = silent;
265 m_quiet_threshold = quiet;
266 m_moderate_threshold = moderate;
267 m_loud_threshold = loud;
268 }
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.

References MayaFlux::Journal::ComputeMatrix, MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::m_loud_threshold, MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::m_moderate_threshold, MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::m_quiet_threshold, MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::m_silent_threshold, and MayaFlux::Journal::Yantra.

Referenced by MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::EnergyAnalyzer().

+ Here is the caller graph for this function: