1 #ifndef included_PCHIPInterpolator_h
2 #define included_PCHIPInterpolator_h
42 std::vector<std::shared_ptr<Vector>>& snapshots,
43 std::vector<Vector>& output_ts,
44 std::vector<std::shared_ptr<Vector>>& output_snapshots);
60 std::vector<std::shared_ptr<Vector>>& snapshots,
62 std::vector<Vector>& output_ts,
63 std::vector<std::shared_ptr<Vector>>& output_snapshots);
67 double computeDerivative(
double S1,
double S2,
double h1,
double h2)
const;
68 double computeH1(
double x,
double xl,
double xr)
const;
69 double computeH2(
double x,
double xl,
double xr)
const;
70 double computeH3(
double x,
double xl,
double xr)
const;
71 double computeH4(
double x,
double xl,
double xr)
const;
72 double computePhi(
double t)
const;
73 double computePsi(
double t)
const;
74 int sign(
double a)
const;
void interpolate(std::vector< Vector > &snapshot_ts, std::vector< std::shared_ptr< Vector >> &snapshots, std::vector< Vector > &output_ts, std::vector< std::shared_ptr< Vector >> &output_snapshots)
Compute new snapshots interpolated from snapshot_ts to output_ts.