|
| PolycubicSpline () |
| construct generic PolycubicSpline More...
|
|
| PolycubicSpline (PolycubicSpline const &src) |
| copy constructor More...
|
|
PolycubicSplineBaseOP | clone () const override |
| Implementation of pure virtual clone() function from base class: returns an owning pointer to a copy of this object. More...
|
|
MathNTensor< Real, N > const & | get_deriv (Size n) const |
|
Size | dimensionality () const |
|
utility::fixedsizearray1< Real,(1
<< N) > | get_all_derivs (utility::fixedsizearray1< Size, N > const &indices) |
|
Real | F (utility::fixedsizearray1< Real, N > const &xs) const |
| return value at certain (x, y, z) More...
|
|
Real | dFdxi (Size n, utility::fixedsizearray1< Real, N > const &xs) const |
| return partial derivative at certain (x, y, z) for x More...
|
|
utility::fixedsizearray1< Real, N > | dFdall (utility::fixedsizearray1< Real, N > const &xs) const |
|
void | train (utility::fixedsizearray1< BorderFlag, N > const &BORDER, utility::fixedsizearray1< double, N > const &START, utility::fixedsizearray1< double, N > const &DELTA, MathNTensor< Real, N > const &RESULTS, utility::fixedsizearray1< bool, N > const &LINCONT, utility::fixedsizearray1< std::pair< Real, Real >, N > const &FIRSTBE) |
| Train PolycubicSpline. More...
|
|
| PolycubicSplineBase () |
| Construct generic PolycubicSplineBase. More...
|
|
| PolycubicSplineBase (Size const dimensionality_in) |
| Initialization constructor. More...
|
|
virtual | ~PolycubicSplineBase () |
| Virtual destructor needed for polymorphism. More...
|
|
Size | dimensionality () const |
| Get the dimensionality of the derived class. More...
|
|
|
utility::fixedsizearray1
< BorderFlag, N > | border_ |
| controls the behavior at x/y_0 and x/y_dim-1 More...
|
|
utility::fixedsizearray1< Real, N > | start_ |
|
utility::fixedsizearray1< Real, N > | delta_ |
| gives the arguments as a sequence of equidistant points More...
|
|
utility::fixedsizearray1
< MathNTensor< Real, N >,(1
<< N) > | n_derivs_ |
|
utility::fixedsizearray1
< std::pair< Real, Real >, N > | firstbe_ |
| first order derivative at x_0/dim-1, y_0/dim-1, z_0/dim-1 can be set for BorderFlag FIRSTDER More...
|
|
utility::fixedsizearray1< bool, N > | LinCont_ |
| if the argument x is outside the range decide if the spline should be continued linearly More...
|
|
template<Size N>
void numeric::interpolation::spline::PolycubicSpline< N >::train |
( |
utility::fixedsizearray1< BorderFlag, N > const & |
BORDER, |
|
|
utility::fixedsizearray1< double, N > const & |
START, |
|
|
utility::fixedsizearray1< double, N > const & |
DELTA, |
|
|
MathNTensor< Real, N > const & |
RESULTS, |
|
|
utility::fixedsizearray1< bool, N > const & |
LINCONT, |
|
|
utility::fixedsizearray1< std::pair< Real, Real >, N > const & |
FIRSTBE |
|
) |
| |
Train PolycubicSpline.
train PolycubicSpline
- Returns
- value and derivative at (x, y)
This initializes the PolycubicSpline, given a MathNTensor of data and various other objects that provide some setup information. This is necessary before using the PolycubicSpline for interpolation.
- Parameters
-
[in] | BORDER | A vector of enums specifying whether each dimension terminates or wraps around. See numeric/interpolation/spline/CubicSpline.fwd.hh for the enum options. |
[in] | START | The start values – i.e. the coordinates of the first point, used to specify an offset from 0 if the grid points aren't aligned to {0,0,0...,0}. |
[in] | DELTA | The dimensions of each bin. |
[in] | RESULTS | The training data, as an N-dimensional tensor (where N >= 3). |
[in] | LINCONT | A vector of booleans that determines what should happen if coordinates are outside of the range of RESULTS. If true, a dimension is extrapolated linearly. |
[in] | FIRSTBE | In the case of non-periodic first-derivative-smoothed ends to the range, the first derivatives for each dimension at the edges can be specified as a vector of pairs of Reals. Pass a vector of pairs of {0, 0} if unused. |
References numeric::interpolation::spline::BicubicSpline::get_dsecox(), numeric::interpolation::spline::CubicSpline::get_dsecox(), numeric::interpolation::spline::BicubicSpline::get_dsecoxy(), numeric::interpolation::spline::BicubicSpline::get_dsecoy(), test.T200_Scoring::ii, basic::options::OptionKeys::flxbb::layer::layer, numeric::MathNTensor< T, N >::n_bins(), basic::options::OptionKeys::score::fiber_diffraction::p, p2, basic::options::OptionKeys::cutoutdomain::start, numeric::interpolation::spline::CubicSpline::train(), numeric::interpolation::spline::BicubicSpline::train(), and test.T040_Types::values.
Referenced by numeric::interpolation::spline::hokey_template_workaround().