#include <WLSApproximant_fwd.hpp>
Class representing the function that is a WLS approximant using some basis function over some points.
These must satisfy the Basis function concept.
| basis_t | Basis function type. | 
Usage example:
Definition at line 27 of file WLSApproximant_fwd.hpp.
Public Member Functions | |
| 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.  More... | |
| scalar_t | operator() (const vector_t &point) const | 
Evaluate the approximant at given point.  More... | |
| template<typename operator_t > | |
| scalar_t | operator() (const vector_t &point, const operator_t&op) const | 
Evaluate an operator applied to approximant at given point.  More... | |
| const basis_t & | basis () const | 
| Get the basis functions.  More... | |
| const vector_t & | point () const | 
| Get the center point.  More... | |
| scalar_t | scale () const | 
| Get the scale.  More... | |
| const Eigen::Matrix< scalar_t, Eigen::Dynamic, 1 > & | coefficients () const | 
| Get the coefficient vector.  More... | |
| scalar_t | residual () const | 
| Get the residual.  More... | |
Public Types | |
| typedef basis_t::scalar_t | scalar_t | 
| Scalar type.  More... | |
| typedef basis_t::vector_t | vector_t | 
| Vector type.  More... | |
Private Attributes | |
| basis_t | basis_ | 
| Basis.  More... | |
| vector_t | point_ | 
| Center point.  More... | |
| std::vector< vector_t > | support_ | 
| Local scaled stencil points.  More... | |
| scalar_t | scale_ | 
| Scale.  More... | |
| Eigen::Matrix< scalar_t, Eigen::Dynamic, 1 > | coefficients_ | 
| Coefficients (for scaled fn.)  More... | |
| scalar_t | residual_ | 
| Store residual of the approximation.  More... | |
| mm::WLSApproximant< basis_t >::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.
The approximant is of the form
\[ u(p) = \sum_{i=1}^m \alpha_i b_i\left(\frac{p - p_c}{s}\right), \]
where \(b_i\) may depend on the stencil nodes (e.g. RBF-s).
| basis | Basis functions \(b_i\) to be used, must satisfy the Basis function concept. | 
| point | Center point \(p_c\) of the WLS approximation. | 
| support | Nonscaled stencil of the WLS approximation. | 
| scale | Scale \(s\) used in WLS computation, see Scale function concept. | 
| coefficients | Coefficients \(\alpha_i\) of the approximation. | 
| residual | The resudial of the weighted least squares approximation. If 0, this function is an interpolant. | 
Definition at line 15 of file WLSApproximant.hpp.
      
  | 
  inline | 
Get the basis functions.
Definition at line 66 of file WLSApproximant_fwd.hpp.
      
  | 
  inline | 
Get the coefficient vector.
Definition at line 72 of file WLSApproximant_fwd.hpp.
| WLSApproximant< basis_t >::scalar_t mm::WLSApproximant< basis_t >::operator() | ( | const vector_t & | point | ) | const | 
Evaluate the approximant at given point. 
Definition at line 30 of file WLSApproximant.hpp.
| WLSApproximant< basis_t >::scalar_t mm::WLSApproximant< basis_t >::operator() | ( | const vector_t & | point, | 
| const operator_t& | op | ||
| ) | const | 
Evaluate an operator applied to approximant at given point. 
Definition at line 43 of file WLSApproximant.hpp.
      
  | 
  inline | 
Get the center point.
Definition at line 68 of file WLSApproximant_fwd.hpp.
      
  | 
  inline | 
Get the residual.
Definition at line 74 of file WLSApproximant_fwd.hpp.
      
  | 
  inline | 
Get the scale.
Definition at line 70 of file WLSApproximant_fwd.hpp.
      
  | 
  private | 
Basis.
Definition at line 33 of file WLSApproximant_fwd.hpp.
      
  | 
  private | 
Coefficients (for scaled fn.)
Definition at line 37 of file WLSApproximant_fwd.hpp.
      
  | 
  private | 
Center point.
Definition at line 34 of file WLSApproximant_fwd.hpp.
      
  | 
  private | 
Store residual of the approximation.
Definition at line 38 of file WLSApproximant_fwd.hpp.
      
  | 
  private | 
Scale.
Definition at line 36 of file WLSApproximant_fwd.hpp.
      
  | 
  private | 
Local scaled stencil points.
Definition at line 35 of file WLSApproximant_fwd.hpp.