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

◆ validate_window_parameters()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::VectorXd>
void MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::validate_window_parameters ( ) const
inlineprivate

Validate window parameters.

Definition at line 483 of file StatisticalAnalyzer.hpp.

484 {
485 if (m_window_size == 0 || m_hop_size == 0) {
486 error<std::invalid_argument>(Journal::Component::Yantra, Journal::Context::ComputeMatrix, std::source_location::current(), "Window size and hop size must be greater than 0");
487 }
489 error<std::invalid_argument>(Journal::Component::Yantra, Journal::Context::ComputeMatrix, std::source_location::current(), "Hop size should not exceed window size");
490 }
491 }
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.

References MayaFlux::Journal::ComputeMatrix, MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::m_hop_size, MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::m_window_size, and MayaFlux::Journal::Yantra.

Referenced by MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::set_analysis_parameter(), MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::set_hop_size(), MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::set_window_size(), and MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::StatisticalAnalyzer().

+ Here is the caller graph for this function: