MayaFlux 0.1.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 366 of file FeatureExtractor.hpp.

367 {
368 if (m_window_size == 0) {
369 throw std::invalid_argument("Window size must be greater than 0");
370 }
371 if (m_hop_size == 0) {
372 throw std::invalid_argument("Hop size must be greater than 0");
373 }
375 throw std::invalid_argument("Hop size should not exceed window size for optimal coverage");
376 }
377 }