diff options
author | André Nusser <andre.nusser@googlemail.com> | 2020-04-25 23:03:57 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2020-04-25 23:03:57 +0200 |
commit | 4c616cf4a001f3b4adda87889a98e403c2e8ab8a (patch) | |
tree | e57bde3e6bd00be4f1554f99d0f670df53ee1b6a /src/powermap.h | |
parent | 8d22262afd0f91b49cb046d090b186c4305d470b (diff) |
Just leave the Steffen method in and clean up powermap.
Diffstat (limited to 'src/powermap.h')
-rw-r--r-- | src/powermap.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/powermap.h b/src/powermap.h index b942722..2cb7efb 100644 --- a/src/powermap.h +++ b/src/powermap.h @@ -63,15 +63,12 @@ private: bool shelf; // spline parameters (deterministically computed from the input parameters) - std::array<float, 5> m; bool spline_needs_update; + std::array<float, 5> m; + const Power eps = 1e-3; 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; }; |