diff options
Diffstat (limited to 'src/powermap.h')
-rw-r--r-- | src/powermap.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/powermap.h b/src/powermap.h index 29a3c81..b942722 100644 --- a/src/powermap.h +++ b/src/powermap.h @@ -64,9 +64,13 @@ private: // spline parameters (deterministically computed from the input parameters) std::array<float, 5> m; - bool spline_needs_update; + void updateSpline(); + std::vector<float> calcSlopes(Powers const& X, Powers const& P); + std::vector<float> calcSlopesFritschCarlson(Powers const& X, Powers const& P); + std::vector<float> calcSlopesSteffen(Powers const& X, Powers const& P); + Power clamp(Power in, Power min, Power max) const; const Power eps = 1e-3; |