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

◆ rms() [2/2]

MAYAFLUX_API double MayaFlux::rms ( const std::vector< double > &  data)

Calculate RMS (Root Mean Square) energy of single-channel data.

Parameters
dataInput data
Returns
RMS value

Definition at line 102 of file Yantra.cpp.

103{
104 static const auto s_op = [] {
105 auto a = std::make_shared<Yantra::StandardStatisticalAnalyzer>();
106 a->set_method(Yantra::StatisticalMethod::RMS);
107 return a;
108 }();
109 auto result = s_op->analyze_statistics({ Kakshya::DataVariant(data) });
110 return result.channel_statistics[0].statistical_values.empty() ? 0.0 : result.channel_statistics[0].statistical_values[0];
111}
size_t a

References a, and MayaFlux::Yantra::RMS.

Referenced by rms_combined().

+ Here is the caller graph for this function: