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

◆ string_to_method()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::VectorXd>
static EnergyMethod MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::string_to_method ( const std::string &  str)
inlinestatic

Convert string to energy method enum.

Parameters
strString representation
Returns
EnergyMethod value

Definition at line 276 of file EnergyAnalyzer.hpp.

277 {
278 if (str == "default")
279 return EnergyMethod::RMS;
280 return Reflect::string_to_enum_or_throw_case_insensitive<EnergyMethod>(str, "EnergyMethod");
281 }
@ RMS
Root Mean Square energy.