SplineVec Class ReferenceΒΆ
Splines
|
#include <SplineVec.hxx>
Public Member Functions | |
SplineVec (SplineVec const &)=delete | |
SplineVec const & | operator= (SplineVec const &)=delete |
void | search (std::pair< integer, real_type > &res) const |
string const & | name () const |
real_type | curvature (real_type x) const |
real_type | curvature_D (real_type x) const |
SplineType1D | type () const |
string | info () const |
void | info (ostream_type &stream) const |
void | dump_table (ostream_type &s, integer num_points) const |
Constructors | |
SplineVec (string const &name="SplineVec") | |
spline constructor | |
virtual | ~SplineVec () |
spline destructor | |
Open/Close | |
bool | is_closed () const |
void | make_closed () |
void | make_open () |
bool | can_extend () const |
void | make_unbounded () |
void | make_buonded () |
Info | |
integer | num_points () const |
integer | dimension () const |
real_type const * | x_nodes () const |
real_type | x_node (integer npt) const |
real_type const * | y_nodes (integer j) const |
real_type | y_node (integer npt, integer j) const |
real_type | x_min () const |
real_type | x_max () const |
Evaluation when segment is known. | |
real_type | eval (real_type x, integer i) const |
real_type | operator() (real_type x, integer i) const |
real_type | D (real_type x, integer i) const |
real_type | eval_D (real_type x, integer i) const |
real_type | DD (real_type x, integer i) const |
real_type | eval_DD (real_type x, integer i) const |
real_type | DDD (real_type x, integer i) const |
real_type | eval_DDD (real_type x, integer i) const |
real_type | DDDD (real_type x, integer i) const |
real_type | eval_DDDD (real_type x, integer i) const |
real_type | DDDDD (real_type x, integer i) const |
real_type | eval_DDDDD (real_type x, integer i) const |
Evaluate all the splines in a vector. | |
void | eval (real_type x, real_type vals[], integer inc) const |
void | eval_D (real_type x, real_type vals[], integer inc) const |
void | eval_DD (real_type x, real_type vals[], integer inc) const |
void | eval_DDD (real_type x, real_type vals[], integer inc) const |
void | eval_DDDD (real_type x, real_type vals[], integer inc) const |
void | eval_DDDDD (real_type x, real_type vals[], integer inc) const |
Evaluate all the splines in an STL vector | |
void | eval (real_type x, vector< real_type > &vals) const |
void | eval_D (real_type x, vector< real_type > &vals) const |
void | eval_DD (real_type x, vector< real_type > &vals) const |
void | eval_DDD (real_type x, vector< real_type > &vals) const |
void | eval_DDDD (real_type x, vector< real_type > &vals) const |
void | eval_DDDDD (real_type x, vector< real_type > &vals) const |
Evaluate all the splines in a <tt>GenericContainer</tt>. | |
void | eval (real_type x, GenericContainer &vals) const |
void | eval_D (real_type x, GenericContainer &vals) const |
void | eval_DD (real_type x, GenericContainer &vals) const |
void | eval_DDD (real_type x, GenericContainer &vals) const |
void | eval_DDDD (real_type x, GenericContainer &vals) const |
void | eval_DDDDD (real_type x, GenericContainer &vals) const |
Evaluate all the splines in a point set in a <tt>GenericContainer</tt> | |
void | eval (vec_real_type const &x, GenericContainer &vals) const |
void | eval_D (vec_real_type const &x, GenericContainer &vals) const |
void | eval_DD (vec_real_type const &x, GenericContainer &vals) const |
void | eval_DDD (vec_real_type const &x, GenericContainer &vals) const |
void | eval_DDDD (vec_real_type const &x, GenericContainer &vals) const |
void | eval_DDDDD (vec_real_type const &x, GenericContainer &vals) const |
Setup Splines. | |
void | setup (integer dim, integer npts, real_type const *Y[]) |
void | setup (integer dim, integer npts, real_type const Y[], integer ldY) |
void | set_knots (real_type const X[]) |
void | set_knots_chord_length () |
void | set_knots_centripetal () |
void | set_knots_foley () |
void | catmull_rom () |
void | build (GenericContainer const &gc) |
void | setup (GenericContainer const &gc) |
Detailed Description
Splines Management Class
Constructor & Destructor Documentation
◆ SplineVec()
Splines::SplineVec::SplineVec | ( | string const & | name = "SplineVec" | ) |
◆ ~SplineVec()
|
virtual |
spline destructor
Spline destructor.
Member Function Documentation
◆ build()
|
inline |
Build a spline using data in GenericContainer
◆ can_extend()
|
inline |
- Returns
true
if spline can extend outside interval of definition
◆ catmull_rom()
void Splines::SplineVec::catmull_rom | ( | ) |
Computes the spline using Catmull Rom algorithm. Points and nodes must be previously stored.
◆ curvature()
◆ curvature_D()
Compute spline curvature derivative at x
.
◆ D()
First derivative value at x
component i
-th.
◆ DD()
Second derivative value at x
component i
-th.
◆ DDD()
Third derivative value at x
component i
-th.
◆ DDDD()
4th derivative value at x
component i
-th.
◆ DDDDD()
5th derivative value at x
component i
-th.
◆ dimension()
|
inline |
Return the number splines in the spline set.
◆ dump_table()
void Splines::SplineVec::dump_table | ( | ostream_type & | s, |
integer | num_points ) const |
Dump values of the spline on a stream for plotting
◆ eval() [1/5]
|
inline |
Evaluate at x
and fill a GenericContainer
◆ eval() [2/5]
Evaluate spline value at x
component i
-th.
◆ eval() [3/5]
Evaluate all the splines at x
and store values in vals
with stride inc
.
◆ eval() [4/5]
Evaluate all the splines at x
and store values in vals
.
◆ eval() [5/5]
void Splines::SplineVec::eval | ( | vec_real_type const & | x, |
GenericContainer & | vals ) const |
Evaluate at x
(x is a vector with many values) and fill a GenericContainer
Evaluate at x
and fill a GenericContainer
◆ eval_D() [1/5]
|
inline |
Evaluate first derivatives at x
and fill a GenericContainer
◆ eval_D() [2/5]
First derivative value at x
component i
-th.
◆ eval_D() [3/5]
Evaluate the fist derivative of all the splines at x
and store values in vals
with stride inc
.
◆ eval_D() [4/5]
Evaluate the fist derivative of all the splines at x
and store values in vals
.
◆ eval_D() [5/5]
void Splines::SplineVec::eval_D | ( | vec_real_type const & | x, |
GenericContainer & | vals ) const |
Evaluate first derivative at x
(x is a vector with many values) and fill a GenericContainer
◆ eval_DD() [1/5]
|
inline |
Evaluate second derivatives at x
and fill a GenericContainer
◆ eval_DD() [2/5]
Second derivative value at x
component i
-th.
◆ eval_DD() [3/5]
Evaluate the second derivative of all the splines at x
and store values in vals
with stride inc
.
◆ eval_DD() [4/5]
Evaluate the second derivative of all the splines at x
and store values in vals
.
◆ eval_DD() [5/5]
void Splines::SplineVec::eval_DD | ( | vec_real_type const & | x, |
GenericContainer & | vals ) const |
Evaluate second derivative at x
(x is a vector with many values) and fill a GenericContainer
◆ eval_DDD() [1/5]
|
inline |
Evaluate third derivatives at x
and fill a GenericContainer
◆ eval_DDD() [2/5]
Third derivative value at x
component i
-th.
◆ eval_DDD() [3/5]
Evaluate the third derivative of all the splines at x
and store values in vals
with stride inc
.
◆ eval_DDD() [4/5]
Evaluate the third derivative of all the splines at x
and store values in vals
.
◆ eval_DDD() [5/5]
void Splines::SplineVec::eval_DDD | ( | vec_real_type const & | x, |
GenericContainer & | vals ) const |
Evaluate third derivative at x
(x is a vector with many values) and fill a GenericContainer
◆ eval_DDDD() [1/5]
|
inline |
Evaluate 4th derivatives at x
and fill a GenericContainer
◆ eval_DDDD() [2/5]
4th derivative value at x
component i
-th.
◆ eval_DDDD() [3/5]
Evaluate the 4th derivative of all the splines at x
and store values in vals
with stride inc
.
◆ eval_DDDD() [4/5]
Evaluate the 4th derivative of all the splines at x
and store values in vals
.
◆ eval_DDDD() [5/5]
void Splines::SplineVec::eval_DDDD | ( | vec_real_type const & | x, |
GenericContainer & | vals ) const |
Evaluate 4th derivative at x
(x is a vector with many values) and fill a GenericContainer
◆ eval_DDDDD() [1/5]
|
inline |
Evaluate 5th derivatives at x
and fill a GenericContainer
◆ eval_DDDDD() [2/5]
5th derivative value at x
component i
-th.
◆ eval_DDDDD() [3/5]
Evaluate the 5th derivative of all the splines at x
and store values in vals
with stride inc
.
◆ eval_DDDDD() [4/5]
Evaluate the 5th derivative of all the splines at x
and store values in vals
.
◆ eval_DDDDD() [5/5]
void Splines::SplineVec::eval_DDDDD | ( | vec_real_type const & | x, |
GenericContainer & | vals ) const |
Evaluate 5th derivative at x
(x is a vector with many values) and fill a GenericContainer
◆ info() [1/2]
string Splines::SplineVec::info | ( | ) | const |
String information of the kind and order of the spline
◆ info() [2/2]
|
inline |
Print information of the kind and order of the spline
◆ is_closed()
|
inline |
- Returns
true
if spline is a closed spline
◆ make_buonded()
|
inline |
Set spline as bounded. When evaluated if parameter is outside the domain an error is issued.
◆ make_closed()
|
inline |
Set spline as a closed spline. When evaluated if parameter is outside the domain is wrapped cyclically before evalation.
◆ make_open()
|
inline |
Set spline as an opened spline. When evaluated if parameter is outside the domain an error is produced.
◆ make_unbounded()
|
inline |
Set spline as unbounded. When evaluated if parameter is outside the domain an extrapolated value is used.
◆ name()
|
inline |
Spline name usd in the constructor
◆ num_points()
|
inline |
Return the number of support points of the splines.
◆ operator()()
Evaluate spline value at x
component i
-th.
◆ search()
Search the segment containing x
◆ set_knots()
void Splines::SplineVec::set_knots | ( | real_type const | X[] | ) |
Set the knots of the spline.
◆ set_knots_centripetal()
void Splines::SplineVec::set_knots_centripetal | ( | ) |
Computes the knots of the spline using centripetal approach.
◆ set_knots_chord_length()
void Splines::SplineVec::set_knots_chord_length | ( | ) |
Computes the knots of the spline using chordal length.
◆ set_knots_foley()
void Splines::SplineVec::set_knots_foley | ( | ) |
Computes the knots of the spline using Foley algorithm.
◆ setup() [1/3]
void Splines::SplineVec::setup | ( | GenericContainer const & | gc | ) |
Build a spline using data in GenericContainer
◆ setup() [2/3]
Initialize the interpolation point of the splines.
- Parameters
-
[in] dim the dimension of the points [in] npts the numeber of interpolation points [in] Y the matrix of points values, Y[i]
is the pointer to the i-th components
◆ setup() [3/3]
Initialize the interpolation point of the splines.
- Parameters
-
[in] dim the dimension of the points [in] npts the numeber of interpolation points [in] Y the matrix of points values [in] ldY leading dimension of the matrix
◆ type()
|
inline |
Return spline type (as number).
◆ x_max()
|
inline |
Return x-maximum spline value.
◆ x_min()
|
inline |
Return x-minumum spline value.
◆ x_node()
Return the npt-th node of the spline (x component).
◆ x_nodes()
|
inline |
Return the vector of values of x-nodes.
◆ y_node()
Return the npt-th node of the spline (j
component of y).
◆ y_nodes()
Return the vector of values of y-nodes, component j
The documentation for this class was generated from the following files:
- /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/src/Splines/SplineVec.hxx
- /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/src/SplineVec.cc
Generated by 1.12.0