Closed Ymit24 closed 3 months ago
Starting on this. Using branch 'feat/impl-curve-maps'
Implemented basic curve functionality. Originally used a HashMap but ran into issue with supporting float based X values. Will switch to Vec based storage.
Specifically sorted Vec ^
Made the changes. Tested with simple TempC
struct. Ready for review and merge.
Realized I could use Into<f32>
to convert X
and Y
before doing interpolation to simplify the trait bounds. Might also need From<f32>
or even TryFrom<f32>
.
Made the changes.
Implement functionality to map values through a curve. This will allow for activation curves to be defined.
Bonus: work with physical units.