14 virtual double eval(
const double t)
const = 0;
17 static std::shared_ptr<Interpolation>
build(
const json ¶ms);
23 double eval(
const double t)
const override {
return 1; };
29 double eval(
const double t)
const override {
return t; }
35 double eval(
const double t)
const override;
36 void init(
const json ¶ms)
override;
46 virtual void init(
const json ¶ms)
override;
47 double eval(
const double t)
const override;
48 double extend(
const double t)
const;
64 virtual double eval_piece(
const double t,
const int i)
const = 0;
66 double dy_dt(
const double t)
const;
67 virtual double dy_dt_piece(
const double t,
const int i)
const = 0;
74 double dy_dt_piece(
const double t,
const int i)
const override {
return 0; }
80 double eval_piece(
const double t,
const int i)
const override;
81 double dy_dt_piece(
const double t,
const int i)
const override;
87 void init(
const json ¶ms)
override;
92 double eval_piece(
const double t,
const int i)
const override;
93 double dy_dt_piece(
const double t,
const int i)
const override;
virtual void init(const json ¶ms)
virtual double eval(const double t) const =0
static std::shared_ptr< Interpolation > build(const json ¶ms)
double eval(const double t) const override
void init(const json ¶ms) override
double eval(const double t) const override
double eval(const double t) const override
double eval_piece(const double t, const int i) const override
double dy_dt_piece(const double t, const int i) const override
double eval_piece(const double t, const int i) const override
const Eigen::MatrixXd & coeffs() const
void init(const json ¶ms) override
double dy_dt_piece(const double t, const int i) const override
virtual double eval_piece(const double t, const int i) const =0
double eval(const double t) const override
virtual void init(const json ¶ms) override
double dy_dt(const double t) const
double extend(const double t) const
std::vector< double > points_
std::vector< double > values_
virtual double dy_dt_piece(const double t, const int i) const =0
double eval_piece(const double t, const int i) const override
double dy_dt_piece(const double t, const int i) const override