MayaFlux
0.3.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
inline
private
Validate extraction parameters.
Definition at line
374
of file
FeatureExtractor.hpp
.
375
{
376
if
(
m_window_size
== 0) {
377
error<std::invalid_argument>(
Journal::Component::Yantra
,
Journal::Context::ComputeMatrix
, std::source_location::current(),
"Window size must be greater than 0"
);
378
}
379
if
(
m_hop_size
== 0) {
380
error<std::invalid_argument>(
Journal::Component::Yantra
,
Journal::Context::ComputeMatrix
, std::source_location::current(),
"Hop size must be greater than 0"
);
381
}
382
if
(
m_hop_size
>
m_window_size
) {
383
error<std::invalid_argument>(
Journal::Component::Yantra
,
Journal::Context::ComputeMatrix
, std::source_location::current(),
"Hop size should not exceed window size for optimal coverage"
);
384
}
385
}
MayaFlux::Yantra::FeatureExtractor::m_hop_size
uint32_t m_hop_size
Definition
FeatureExtractor.hpp:368
MayaFlux::Yantra::FeatureExtractor::m_window_size
uint32_t m_window_size
Definition
FeatureExtractor.hpp:367
MayaFlux::Journal::Context::ComputeMatrix
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
MayaFlux::Journal::Component::Yantra
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.
MayaFlux
Yantra
FeatureExtractor
Generated by
1.9.8