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

Method getEstimateY

libraries/Correlation/Correlation.cpp:131–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131float Correlation::getEstimateY(float x)
132{
133 if (_count == 0) return NAN;
134 if (_needRecalculate) calculate();
135 return _a + _b * x;
136}
137
138
139float Correlation::getEstimateX(float y)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64