MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / clear

Method clear

libraries/Correlation/Correlation.cpp:29–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29void Correlation::clear()
30{
31 _count = 0;
32 _index = 0;
33 _needRecalculate = true;
34 _runningMode = false;
35 _avgX = 0;
36 _avgY = 0;
37 _a = 0;
38 _b = 0;
39 _div_b = -1; // as 1/_b is undefined
40 _r = 0;
41 _sumErrorSquare = 0;
42 _sumXiYi = 0;
43 _sumXi2 = 0;
44 _sumYi2 = 0;
45 _doR2 = true;
46 _doE2 = true;
47}
48
49
50bool Correlation::add(float x, float y)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36