3 #ifndef __u_smooth_cubic_spline1d_hpp
4 #define __u_smooth_cubic_spline1d_hpp
7 #include <mth/u2d_wpoint.hpp>
8 #include <mth/u2d_box.hpp>
9 #include <mth/u_curve1d.hpp>
31 virtual void approximate(
const U2dWPoints &nodes,
double alpha);
41 {printf(
"SmoothCubicSpline1d::addNode: not implemented.\n");}
45 {printf(
"SmoothCubicSpline1d::removeNode: not implemented.\n");
return false;}
64 inline double Am(
size_t i,
size_t j,
const U2dWPoints &nodes)
const;
65 inline double Hm(
size_t i,
size_t j,
const std::vector<double> &delta_vec)
const;
66 inline double Km(
size_t i,
size_t j,
const U2dWPoints &nodes)
const;
67 inline double bv(
size_t i,
const U2dWPoints &nodes)
const;
75 inline double get_s(
double x)
const;
virtual bool ready() const
Definition: u_smooth_cubic_spline1d.hpp:34
double get_s(double x) const
std::vector< Coeffs > CoeffsAr
Definition: u_smooth_cubic_spline1d.hpp:52
virtual double operator()(double x) const
Definition: u_curve1d.hpp:11
virtual void approximate(const U2dWPoints &nodes, double alpha)
Definition: u_smooth_cubic_spline1d.hpp:13
virtual bool removeNode(size_t)
Definition: u_smooth_cubic_spline1d.hpp:44
U2dBox m_bound
Definition: u_smooth_cubic_spline1d.hpp:58
virtual void addNode(const U2dWPoint &, int)
Definition: u_smooth_cubic_spline1d.hpp:40
CoeffsAr m_coeffs
Definition: u_smooth_cubic_spline1d.hpp:55
Definition: u_smooth_cubic_spline1d.hpp:50
Definition: u2d_box.hpp:8
bool calc_coeffs(const U2dWPoints &nodes, double alpha, CoeffsAr &coeffs)
Definition: u2d_wpoint.hpp:9
virtual ~SmoothCubicSpline1d()