MayaFlux 0.1.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 380 of file EnergyAnalyzer.hpp.

381 {
382 if (name == "method")
383 return std::any(method_to_string(m_method));
384 if (name == "window_size")
385 return std::any(m_window_size);
386 if (name == "hop_size")
387 return std::any(m_hop_size);
388 if (name == "classification_enabled")
389 return std::any(m_classification_enabled);
390
392 }
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