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

◆ supports_method()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::VectorXd>
bool MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::supports_method ( const std::string &  method) const
inlineoverridevirtual

Check if a specific method is supported.

Parameters
methodMethod name to check
Returns
True if method is supported

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

Definition at line 168 of file EnergyAnalyzer.hpp.

169 {
170 return std::find_if(get_available_methods().begin(), get_available_methods().end(),
171 [&method](const std::string& m) {
172 return std::equal(method.begin(), method.end(), m.begin(), m.end(),
173 [](char a, char b) { return std::tolower(a) == std::tolower(b); });
174 })
175 != get_available_methods().end();
176 }
std::vector< std::string > get_available_methods() const override
Get available analysis methods.