Handle analysis-specific parameters.
344 {
345 if (name == "method") {
346 try {
347 auto method_str = safe_any_cast_or_throw<std::string>(value);
349 return;
350 } catch (const std::runtime_error&) {
352 }
353 if (auto* method_enum = std::any_cast<EnergyMethod>(&value)) {
355 return;
356 }
357 } else if (name == "window_size") {
358 if (auto* size = std::any_cast<uint32_t>(&value)) {
361 return;
362 }
363 } else if (name == "hop_size") {
364 if (auto* size = std::any_cast<uint32_t>(&value)) {
367 return;
368 }
369 } else if (name == "classification_enabled") {
370 if (auto* enabled = std::any_cast<bool>(&value)) {
372 return;
373 }
374 }
375
377 }
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)
void error_rethrow(Component component, Context context, std::source_location location=std::source_location::current(), std::string_view additional_context="")
Catch and log an exception, then rethrow it.
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.