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

◆ std_dev_combined()

MAYAFLUX_API double MayaFlux::std_dev_combined ( const std::vector< Kakshya::DataVariant > &  channels)

Calculate standard deviation across all channels (mix then analyze)

Parameters
channelsVector of channel data
Returns
Single standard deviation value across all mixed channels

Definition at line 194 of file Yantra.cpp.

195{
196 auto data = Yantra::OperationHelper::extract_numeric_data(channels);
197 if (is_same_size(data)) {
198 auto result = std_dev_per_channel(channels);
199 return std::accumulate(result.begin(), result.end(), 0.0) / (double)result.size();
200 }
201 auto mixed = concat_vectors(data);
202 return std_dev(mixed);
203}
std::vector< double > std_dev_per_channel(const std::vector< Kakshya::DataVariant > &channels)
Calculate standard deviation per channel for multi-channel data.
Definition Yantra.cpp:176

References MayaFlux::Yantra::OperationHelper::extract_numeric_data(), std_dev(), and std_dev_per_channel().

+ Here is the call graph for this function: