LSSTApplications
18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
|
A 1-d function defined by a series expansion and its coefficients. More...
#include <Function1d.h>
Public Types | |
using | iterator = double * |
using | const_iterator = double const * |
using | Basis = Basis_ |
The basis type used by this function. More... | |
Public Member Functions | |
Function1d (Basis const &basis) | |
Construct with zero-valued coefficients. More... | |
Function1d (Basis const &basis, Eigen::VectorXd const &coefficients) | |
Construct with coefficients from an Eigen object. More... | |
template<typename Iterator > | |
Function1d (Basis const &basis, Iterator first, Iterator last) | |
Construct by copying coefficients from an STL iterator range. More... | |
Function1d (Function1d const &)=default | |
Default copy constructor. More... | |
Function1d (Function1d &&)=default | |
Default move constructor. More... | |
Function1d & | operator= (Function1d const &)=default |
Default copy assignment. More... | |
Function1d & | operator= (Function1d &&)=default |
Default move assignment. More... | |
Basis const & | getBasis () const |
Return the associated Basis1d object. More... | |
std::size_t | size () const |
Return the number of coefficients. More... | |
double | operator() (double x, SumMode mode=SumMode::FAST) const |
Evaluate the function at the given point. More... | |
Function1d< typename Basis::Scaled > | scaled (Scaling1d const &scaling) const |
Return a new function that applies the given scaling to all points before evaluation. More... | |
iterator | begin () |
Iterators over coefficients. More... | |
iterator | end () |
Iterators over coefficients. More... | |
const_iterator | cbegin () const |
Iterators over coefficients. More... | |
const_iterator | cend () const |
Iterators over coefficients. More... | |
const_iterator | begin () const |
Iterators over coefficients. More... | |
const_iterator | end () const |
Iterators over coefficients. More... | |
double & | operator[] (std::size_t n) |
Return the coefficient associated with the nth basis function. More... | |
double const & | operator[] (std::size_t n) const |
Return the coefficient associated with the nth basis function. More... | |
auto | getCoefficients () |
Return the coefficient vector as an Eigen matrix-like object. More... | |
auto | getCoefficients () const |
Return the coefficient vector as an Eigen matrix-like object. More... | |
A 1-d function defined by a series expansion and its coefficients.
A Function1d combines a Basis1d that defines basis functions \(B_n(x)\) with a vector of associated coefficients \(a_n\). Evaluating the function computes
\[ \sum_{n=0}^{n \le N} a_n B_n(x) \]
Definition at line 42 of file Function1d.h.
using lsst::geom::polynomials::Function1d< Basis_ >::Basis = Basis_ |
The basis type used by this function.
Definition at line 49 of file Function1d.h.
using lsst::geom::polynomials::Function1d< Basis_ >::const_iterator = double const * |
Definition at line 46 of file Function1d.h.
using lsst::geom::polynomials::Function1d< Basis_ >::iterator = double * |
Definition at line 45 of file Function1d.h.
|
inlineexplicit |
|
inline |
Construct with coefficients from an Eigen object.
Definition at line 58 of file Function1d.h.
|
inline |
Construct by copying coefficients from an STL iterator range.
Definition at line 67 of file Function1d.h.
|
default |
Default copy constructor.
|
default |
Default move constructor.
|
inline |
Iterators over coefficients.
Definition at line 89 of file Function1d.h.
|
inline |
Iterators over coefficients.
Definition at line 93 of file Function1d.h.
|
inline |
Iterators over coefficients.
Definition at line 91 of file Function1d.h.
|
inline |
Iterators over coefficients.
Definition at line 92 of file Function1d.h.
|
inline |
Iterators over coefficients.
Definition at line 90 of file Function1d.h.
|
inline |
Iterators over coefficients.
Definition at line 94 of file Function1d.h.
|
inline |
Return the associated Basis1d object.
Definition at line 98 of file Function1d.h.
|
inline |
Return the coefficient vector as an Eigen matrix-like object.
The exact type of the returned object is unspecified, but it is guaranteed to be a view.
Definition at line 125 of file Function1d.h.
|
inline |
Return the coefficient vector as an Eigen matrix-like object.
The exact type of the returned object is unspecified, but it is guaranteed to be a view.
Definition at line 129 of file Function1d.h.
|
inline |
|
default |
Default copy assignment.
|
default |
Default move assignment.
|
inline |
Return the coefficient associated with the nth basis function.
Caller is responsible for ensuring that the given index is valid.
Definition at line 114 of file Function1d.h.
|
inline |
Return the coefficient associated with the nth basis function.
Caller is responsible for ensuring that the given index is valid.
Definition at line 115 of file Function1d.h.
|
inline |
Return a new function that applies the given scaling to all points before evaluation.
Definition at line 133 of file Function1d.h.
|
inline |
Return the number of coefficients.
Definition at line 101 of file Function1d.h.