1 #ifndef LIBR2C2_SPEEDQUANTIZER_H_
2 #define LIBR2C2_SPEEDQUANTIZER_H_
6 #include <msp/datafile/objectloader.h>
13 class Loader: public Msp::DataFile::ObjectLoader<SpeedQuantizer>
16 Loader(SpeedQuantizer &);
18 void step(unsigned, float, float);
28 void add(float, float);
31 std::vector<SpeedStep> steps;
35 SpeedQuantizer(unsigned);
37 void learn(unsigned, float, float);
38 float get_speed(unsigned) const;
39 float quantize_speed(float) const;
40 unsigned find_speed_step(float) const;
42 void save(std::list<Msp::DataFile::Statement> &) const;