MayaFlux
0.3.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::EnergyAnalyzer
< InputType, OutputType >::validate_window_parameters
(
)
const
inline
private
Definition at line
407
of file
EnergyAnalyzer.hpp
.
408
{
409
if
(
m_window_size
== 0) {
410
error<std::invalid_argument>(
Journal::Component::Yantra
,
Journal::Context::ComputeMatrix
, std::source_location::current(),
"Window size must be greater than 0"
);
411
}
412
if
(
m_hop_size
== 0) {
413
error<std::invalid_argument>(
Journal::Component::Yantra
,
Journal::Context::ComputeMatrix
, std::source_location::current(),
"Hop size must be greater than 0"
);
414
}
415
if
(
m_hop_size
>
m_window_size
) {
416
error<std::invalid_argument>(
Journal::Component::Yantra
,
Journal::Context::ComputeMatrix
, std::source_location::current(),
"Hop size should not exceed window size"
);
417
}
418
}
MayaFlux::Yantra::EnergyAnalyzer::m_window_size
uint32_t m_window_size
Definition
EnergyAnalyzer.hpp:397
MayaFlux::Yantra::EnergyAnalyzer::m_hop_size
uint32_t m_hop_size
Definition
EnergyAnalyzer.hpp:398
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
EnergyAnalyzer
Generated by
1.9.8