Handle analysis-specific parameters.
349 {
350 if (name == "method") {
351 if (auto str_result = safe_any_cast<std::string>(value)) {
353 return;
354 }
355
356 if (auto enum_result = safe_any_cast<EnergyMethod>(value)) {
358 return;
359 }
360
362 std::source_location::current(),
363 "Invalid method parameter - expected string or EnergyMethod enum");
364 } else if (name == "window_size") {
365 if (auto result = safe_any_cast<uint32_t>(value)) {
368 return;
369 }
370 } else if (name == "hop_size") {
371 if (auto result = safe_any_cast<uint32_t>(value)) {
374 return;
375 }
376 } else if (name == "classification_enabled") {
377 if (auto result = safe_any_cast<bool>(value)) {
379 return;
380 }
381 }
382
384 }
static EnergyMethod string_to_method(const std::string &str)
Convert string to energy method enum.
void validate_window_parameters() const
bool m_classification_enabled
virtual void set_analysis_parameter(const std::string &name, std::any value)
Analysis-specific parameter handling (override for custom parameters)
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.