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

270 {
271 if (str == "default")
272 return EnergyMethod::RMS;
273 return Utils::string_to_enum_or_throw_case_insensitive<EnergyMethod>(str, "EnergyMethod");
274 }
@ RMS
Root Mean Square energy.