35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 Spline * m_pSpline{
nullptr};
76 string const &
name()
const {
return m_pSpline->name(); }
79 bool is_closed()
const {
return m_pSpline->is_closed(); }
98 bool is_bounded()
const {
return m_pSpline->is_bounded(); }
186 void build() { m_pSpline->build(); }
191 void setup( GenericContainer
const & gc );
231 this->
build( tp, x, 1, y, 1, n );
244 vector<real_type>
const & x,
245 vector<real_type>
const & y
248 this->
build( tp, &x.front(), &y.front(), n );
254 void clear() { m_pSpline->clear(); }
295 char const header[] =
"x\ty"
297 m_pSpline->dump( s, nintervals, header );
307 char const header[] =
"x\ty"
309 m_pSpline->dump( fname, nintervals, header );
432 bool transpose =
false
434 return m_pSpline->coeffs( cfs, nodes, transpose );
447 {
return m_pSpline->write_to_stream( s ); }
454 {
return m_pSpline->type_name(); }
461 {
return m_pSpline->type(); }
468 {
return m_pSpline->info(); }
474 info( ostream_type & stream )
const
475 { m_pSpline->info( stream ); }
477 #ifdef SPLINES_BACK_COMPATIBILITY
478 integer numPoints()
const {
return m_pSpline->num_points(); }
Spline Management Class.
Definition Splines1D.hxx:32
void build(SplineType1D tp, vector< real_type > const &x, vector< real_type > const &y)
Definition Splines1D.hxx:242
SplineType1D type() const
Definition Splines1D.hxx:460
void make_extended_constant()
Definition Splines1D.hxx:122
real_type DDDD(real_type x) const
Definition Splines1D.hxx:339
real_type y_begin() const
Definition Splines1D.hxx:156
real_type eval_DDD(real_type x) const
the value of the third derivative of the spline at x
Definition Splines1D.hxx:362
bool is_bounded() const
Definition Splines1D.hxx:98
void clear()
Definition Splines1D.hxx:254
real_type id_DDDDD(integer ni, real_type x) const
Definition Splines1D.hxx:421
void make_closed()
Definition Splines1D.hxx:86
real_type x_begin() const
Definition Splines1D.hxx:151
void dump(char const fname[], integer nintervals, char const header[]="x\ty") const
Definition Splines1D.hxx:304
Spline1D(std::string const &n)
Definition Splines1D.hxx:55
string info() const
Definition Splines1D.hxx:467
bool is_closed() const
Definition Splines1D.hxx:79
real_type id_DDDD(integer ni, real_type x) const
Definition Splines1D.hxx:413
real_type D(real_type x) const
Definition Splines1D.hxx:324
real_type y_min() const
Definition Splines1D.hxx:269
real_type x_min() const
Definition Splines1D.hxx:259
void drop_back()
Definition Splines1D.hxx:180
void make_extended_not_constant()
Definition Splines1D.hxx:128
void build()
Definition Splines1D.hxx:186
integer num_points() const
Definition Splines1D.hxx:136
real_type DD(real_type x) const
Definition Splines1D.hxx:329
real_type DDD(real_type x) const
Definition Splines1D.hxx:334
void set_range(real_type xmin, real_type xmax)
Definition Splines1D.hxx:285
real_type id_eval(integer ni, real_type x) const
Definition Splines1D.hxx:381
void make_bounded()
Definition Splines1D.hxx:111
void build(SplineType1D tp, real_type const x[], real_type const y[], integer n)
Definition Splines1D.hxx:225
real_type operator()(real_type x) const
Definition Splines1D.hxx:353
real_type eval(real_type x) const
Definition Splines1D.hxx:319
real_type y_node(integer i) const
Definition Splines1D.hxx:146
real_type id_D(integer ni, real_type x) const
Definition Splines1D.hxx:389
void reserve(integer npts)
Definition Splines1D.hxx:171
void dump(ostream_type &s, integer nintervals, char const header[]="x\ty") const
Definition Splines1D.hxx:292
real_type x_max() const
Definition Splines1D.hxx:264
void push_back(real_type x, real_type y)
Definition Splines1D.hxx:176
bool is_extended_constant() const
Definition Splines1D.hxx:116
real_type id_DDD(integer ni, real_type x) const
Definition Splines1D.hxx:405
real_type eval_DDDDD(real_type x) const
the value of the 5-th derivative of the spline at x
Definition Splines1D.hxx:368
void write_to_stream(ostream_type &s) const
Definition Splines1D.hxx:446
real_type y_end() const
Definition Splines1D.hxx:166
~Spline1D()
Definition Splines1D.hxx:62
integer coeffs(real_type cfs[], real_type nodes[], bool transpose=false) const
Definition Splines1D.hxx:429
void info(ostream_type &stream) const
Definition Splines1D.hxx:474
real_type eval_DDDD(real_type x) const
the value of the 4-th derivative of the spline at x
Definition Splines1D.hxx:365
real_type eval_DD(real_type x) const
the value of the second derivative of the spline at x
Definition Splines1D.hxx:359
void make_opened()
Definition Splines1D.hxx:93
string const & name() const
Definition Splines1D.hxx:76
real_type eval_D(real_type x) const
the value of the first derivative of the spline at x
Definition Splines1D.hxx:356
void setup(GenericContainer const &gc)
Definition Splines1D.cc:94
void make_unbounded()
Definition Splines1D.hxx:105
char const * type_name() const
Definition Splines1D.hxx:453
integer order() const
Definition Splines1D.hxx:440
real_type DDDDD(real_type x) const
Definition Splines1D.hxx:344
void set_origin(real_type x0)
Definition Splines1D.hxx:280
void build(GenericContainer const &gc)
Definition Splines1D.hxx:195
real_type y_max() const
Definition Splines1D.hxx:274
void build(SplineType1D tp, real_type const x[], integer incx, real_type const y[], integer incy, integer n)
real_type x_node(integer i) const
Definition Splines1D.hxx:141
real_type x_end() const
Definition Splines1D.hxx:161
real_type id_DD(integer ni, real_type x) const
Definition Splines1D.hxx:397
Definition Splines.hh:372
Definition SplineAkima.cc:50
int integer
Signed integer type for splines.
Definition Splines.hh:58
enum class SplineType1D :integer { CONSTANT=0, LINEAR=1, CUBIC=2, AKIMA=3, BESSEL=4, PCHIP=5, QUINTIC=6, HERMITE=7, SPLINE_SET=8, SPLINE_VEC=9 } SplineType1D
Associate a number for each type of splines implemented.
Definition Splines.hh:71
double real_type
Floating point type for splines.
Definition Splines.hh:57