MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / downsample_mean

Function downsample_mean

src/data_handler/inc/downsample_operators.h:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <vector>
5
6inline double downsample_mean (double *data, int len)
7{
8 double sum = 0;
9 for (int i = 0; i < len; i++)
10 {
11 sum += data[i];
12 }
13 return sum / (double)len;
14}
15
16inline double downsample_each (double *data, int len)
17{

Callers 1

downsample_medianFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected