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

◆ mean() [2/2]

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

Calculate mean of single-channel data.

Parameters
dataInput data
Returns
Mean value

Definition at line 55 of file Yantra.cpp.

56{
57 static const auto s_op = [] {
58 auto a = std::make_shared<Yantra::StatisticalAnalyzer<>>();
59 a->set_method(Yantra::StatisticalMethod::MEAN);
60 return a;
61 }();
62 return s_op->analyze_statistics({ Kakshya::DataVariant(data) }).channel_statistics[0].mean_stat;
63}
size_t a

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

Referenced by MayaFlux::Kinesis::Discrete::coefficient_of_variation(), MayaFlux::Yantra::EnergyAnalyzer< InputType, OutputType >::create_analysis_result(), MayaFlux::Kinesis::Discrete::mean(), and mean_combined().

+ Here is the caller graph for this function: