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

◆ get_analysis_parameter()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::VectorXd>
std::any MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::get_analysis_parameter ( const std::string &  name) const
inlineoverrideprotectedvirtual

Get analysis-specific parameter.

Reimplemented from MayaFlux::Yantra::UniversalAnalyzer< InputType, OutputType >.

Definition at line 389 of file EnergyAnalyzer.hpp.

390 {
391 if (name == "method")
392 return std::any(method_to_string(m_method));
393 if (name == "window_size")
394 return std::any(m_window_size);
395 if (name == "hop_size")
396 return std::any(m_hop_size);
397 if (name == "classification_enabled")
398 return std::any(m_classification_enabled);
399
401 }
static std::string method_to_string(EnergyMethod method)
Convert energy method enum to string.
virtual std::any get_analysis_parameter(const std::string &name) const