MayaFlux 0.3.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 170 of file EnergyAnalyzer.hpp.

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

References a, and b.