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

◆ validate_parameters()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = std::vector<std::vector<double>>>
void MayaFlux::Yantra::FeatureExtractor< InputType, OutputType >::validate_parameters ( ) const
inlineprivate

Validate extraction parameters.

Definition at line 409 of file FeatureExtractor.hpp.

410 {
411 if (m_window_size == 0) {
412 error<std::invalid_argument>(Journal::Component::Yantra, Journal::Context::ComputeMatrix, std::source_location::current(), "Window size must be greater than 0");
413 }
414 if (m_hop_size == 0) {
415 error<std::invalid_argument>(Journal::Component::Yantra, Journal::Context::ComputeMatrix, std::source_location::current(), "Hop size must be greater than 0");
416 }
418 error<std::invalid_argument>(Journal::Component::Yantra, Journal::Context::ComputeMatrix, std::source_location::current(), "Hop size should not exceed window size for optimal coverage");
419 }
420 }
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.

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

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

+ Here is the caller graph for this function: