#include <WeightFunction_fwd.hpp>
Represents a weight function constructed from a Radial Basis function.
RBFType | Type of the RBF used. Must satisfy the Radial Basis Function concept. |
vec_t | Vector type used in calculations. |
The weight function \(w\) is defined as \(w(x) = f(\|x\|_2^2)\), where \(f\) is the given radial basis function.
This class satisfies the Weight function concept.
Usage example:
Definition at line 63 of file WeightFunction_fwd.hpp.
Public Member Functions | |
RBFWeight () | |
Construct a weight with default construction of RBF. More... | |
RBFWeight (const rbf_t &rbf) | |
Construct a weight from given RBF. More... | |
template<typename ... Args> | |
RBFWeight (Args &&... args) | |
Perfect forwarding constructor. Construct RBFWeight as if you were constructing given RBF. More... | |
const rbf_t & | rbf () const |
Returns underlying RBF object. More... | |
rbf_t & | rbf () |
Returns modifiable underlying RBF object. More... | |
scalar_t | operator() (const vector_t &point) const |
Evaluate weight function at point . More... | |
Public Types | |
enum | { dim = vec_t::dim } |
Store dimension of the domain. More... | |
typedef RBFType | rbf_t |
Radial basis function type. More... | |
typedef vec_t | vector_t |
Vector type. More... | |
typedef vector_t::scalar_t | scalar_t |
Scalar type. More... | |
Friends | |
template<typename V , typename R > | |
std::ostream & | operator<< (std::ostream &os, const RBFWeight< V, R > &m) |
Output basic info about given weight function. More... | |
Private Attributes | |
rbf_t | rbf_ |
RBF function. More... | |
anonymous enum |
Store dimension of the domain.
Enumerator | |
---|---|
dim | Dimensionality of the function domain. |
Definition at line 71 of file WeightFunction_fwd.hpp.
|
inline |
Construct a weight with default construction of RBF.
Definition at line 78 of file WeightFunction_fwd.hpp.
|
inline |
Construct a weight from given RBF.
Definition at line 80 of file WeightFunction_fwd.hpp.
|
inline |
Perfect forwarding constructor. Construct RBFWeight as if you were constructing given RBF.
Definition at line 83 of file WeightFunction_fwd.hpp.
|
inline |
Evaluate weight function at point
.
Definition at line 92 of file WeightFunction_fwd.hpp.
|
inline |
Returns modifiable underlying RBF object.
Definition at line 89 of file WeightFunction_fwd.hpp.
|
inline |
Returns underlying RBF object.
Definition at line 86 of file WeightFunction_fwd.hpp.
|
friend |
Output basic info about given weight function.
Definition at line 17 of file WeightFunction.hpp.
|
private |
RBF function.
Definition at line 74 of file WeightFunction_fwd.hpp.