|
Medusa
1.1
Coordinate Free Mehless Method implementation
|
|
Go to the documentation of this file. 1 #ifndef MEDUSA_BITS_APPROXIMATIONS_WLSAPPROXIMANT_FWD_HPP_
2 #define MEDUSA_BITS_APPROXIMATIONS_WLSAPPROXIMANT_FWD_HPP_
26 template <
typename basis_t>
55 const Eigen::Matrix<scalar_t, Eigen::Dynamic, 1>&
coefficients,
62 template <
typename operator_t>
79 #endif // MEDUSA_BITS_APPROXIMATIONS_WLSAPPROXIMANT_FWD_HPP_
Root namespace for the whole library.
Scalar scalar_t
Type of the elements, alias of Scalar.
basis_t::scalar_t scalar_t
Scalar type.
scalar_t scale() const
Get the scale.
static const double NaN
Not-a-number floating point value.
vector_t point_
Center point.
scalar_t residual_
Store residual of the approximation.
const Eigen::Matrix< scalar_t, Eigen::Dynamic, 1 > & coefficients() const
Get the coefficient vector.
WLSApproximant(const basis_t &basis, const vector_t &point, const std::vector< vector_t > &support, scalar_t scale, const Eigen::Matrix< scalar_t, Eigen::Dynamic, 1 > &coefficients, scalar_t residual=NaN)
Construct a WLS approximant with known coefficients.
const vector_t & point() const
Get the center point.
basis_t::vector_t vector_t
Vector type.
scalar_t residual() const
Get the residual.
scalar_t operator()(const vector_t &point) const
Evaluate the approximant at given point.
Class representing the function that is a WLS approximant using some basis function over some points.
Eigen::Matrix< scalar_t, Eigen::Dynamic, 1 > coefficients_
Coefficients (for scaled fn.)
const basis_t & basis() const
Get the basis functions.
std::vector< vector_t > support_
Local scaled stencil points.