Pre-computed B-Spline values In the "order 0" case, the array is not used (the analytical expression is too simple)
More...
#include <aims/math/bspline.h>
|
| TabulBSpline (unsigned order=3, unsigned nder=1, float scale=1., bool shifted=false, size_t length=std::numeric_limits< unsigned short >::max() - 1) |
|
| TabulBSpline (const TabulBSpline &other) |
|
virtual | ~TabulBSpline () |
|
TabulBSpline & | operator= (const TabulBSpline &other) |
|
|
virtual double | at (double x) const |
| Get valuespline value at point x. More...
|
|
virtual double | derivative (double x, unsigned n=1) const |
| n-th derivative of the spline at point x More...
|
|
|
virtual void | reset (unsigned order=3, unsigned nder=1, float scale=1., bool shifted=false, size_t length=std::numeric_limits< unsigned short >::max() - 1) |
| Set parameters Be aware that a call to reset, setOrder, setNbDer and setLength will trigger a reallocation of the array and a recomputing of the values. More...
|
|
virtual void | setOrder (unsigned order) |
| order More...
|
|
virtual void | setNbDer (unsigned nder) |
| number of derivative stored More...
|
|
virtual void | setLength (size_t length) |
| array length More...
|
|
|
virtual unsigned | nder () const |
| Get parametersnumber of derivative stored. More...
|
|
virtual size_t | length () const |
| array length More...
|
|
| BSpline (unsigned order=3, float scale=1., bool shifted=false) |
|
| BSpline (const BSpline &other) |
|
virtual | ~BSpline () |
|
BSpline & | operator= (const BSpline &other) |
|
virtual void | reset (unsigned order=3, float scale=1., bool shifted=false) |
| Set parameters { (Re)set all parameters. More...
|
|
virtual void | setScale (float scale) |
| scale More...
|
|
virtual void | setShifted (bool shifted) |
| shifted More...
|
|
virtual void | setCentered (bool centered) |
| centered More...
|
|
unsigned | order () const |
| Get parameters { spline order. More...
|
|
float | scale () const |
| spline scale More...
|
|
bool | shifted () const |
| is shifted ? More...
|
|
bool | centered () const |
| is centered ? More...
|
|
virtual double | operator() (double x) const |
| Compute value. More...
|
|
virtual const Point2dd & | support () const |
| Get the inferior and superior boundaries of the function support (i.e. More...
|
|
Pre-computed B-Spline values In the "order 0" case, the array is not used (the analytical expression is too simple)
See BSpline for information on values computation
Definition at line 251 of file bspline.h.
◆ TabulBSpline() [1/2]
aims::TabulBSpline::TabulBSpline |
( |
unsigned |
order = 3 , |
|
|
unsigned |
nder = 1 , |
|
|
float |
scale = 1. , |
|
|
bool |
shifted = false , |
|
|
size_t |
length = std::numeric_limits< unsigned short >::max() - 1 |
|
) |
| |
◆ TabulBSpline() [2/2]
aims::TabulBSpline::TabulBSpline |
( |
const TabulBSpline & |
other | ) |
|
◆ ~TabulBSpline()
virtual aims::TabulBSpline::~TabulBSpline |
( |
| ) |
|
|
virtual |
◆ at()
virtual double aims::TabulBSpline::at |
( |
double |
x | ) |
const |
|
virtual |
Get valuespline value at point x.
Reimplemented from aims::BSpline.
◆ derivative()
virtual double aims::TabulBSpline::derivative |
( |
double |
x, |
|
|
unsigned |
n = 1 |
|
) |
| const |
|
virtual |
n-th derivative of the spline at point x
Reimplemented from aims::BSpline.
◆ index()
size_t aims::TabulBSpline::index |
( |
double |
x | ) |
const |
|
protected |
◆ is_valid()
bool aims::TabulBSpline::is_valid |
( |
size_t |
index | ) |
const |
|
protected |
◆ length()
virtual size_t aims::TabulBSpline::length |
( |
| ) |
const |
|
virtual |
◆ nder()
virtual unsigned aims::TabulBSpline::nder |
( |
| ) |
const |
|
virtual |
Get parametersnumber of derivative stored.
◆ operator=()
◆ reset()
virtual void aims::TabulBSpline::reset |
( |
unsigned |
order = 3 , |
|
|
unsigned |
nder = 1 , |
|
|
float |
scale = 1. , |
|
|
bool |
shifted = false , |
|
|
size_t |
length = std::numeric_limits< unsigned short >::max() - 1 |
|
) |
| |
|
virtual |
Set parameters Be aware that a call to reset, setOrder, setNbDer and setLength will trigger a reallocation of the array and a recomputing of the values.
If several of these values need changing, it is thus avdised to use the reset() method.
(Re)set all parameters
◆ setArray()
void aims::TabulBSpline::setArray |
( |
unsigned |
nder, |
|
|
size_t |
length |
|
) |
| |
|
protected |
◆ setLength()
virtual void aims::TabulBSpline::setLength |
( |
size_t |
length | ) |
|
|
virtual |
◆ setNbDer()
virtual void aims::TabulBSpline::setNbDer |
( |
unsigned |
nder | ) |
|
|
virtual |
number of derivative stored
◆ setOrder()
virtual void aims::TabulBSpline::setOrder |
( |
unsigned |
order | ) |
|
|
virtual |
◆ _tableoffset
double aims::TabulBSpline::_tableoffset |
|
protected |
◆ _tablescale
double aims::TabulBSpline::_tablescale |
|
protected |
◆ _values
std::vector<std::vector<double> > aims::TabulBSpline::_values |
|
protected |
The documentation for this class was generated from the following file: