#include <Gaussian_fwd.hpp>
Gaussian Radial Basis Function.
Specifically, this class represents a function \( f(r^2) = \exp(-r^2/\sigma^2) \) as a function of squared distance with shape parameter \(\sigma \). This class satisfies the Radial Basis Function concept.
Usage example:
Definition at line 29 of file Gaussian_fwd.hpp.
Public Member Functions | |
| Gaussian (scalar_t shape=1.0) | |
Creates a Gaussian RBF with shape parameter shape. The shape should be positive. More... | |
| scalar_t | shape () const |
| Returns shape parameter. More... | |
| void | setShape (scalar_t shape) |
| Sets shape parameter to a new value. More... | |
| scalar_t | operator() (scalar_t r2, int derivative) const |
| Evaluate derivative of this RBF wrt. More... | |
| template<int dimension> | |
| scalar_t | operator() (scalar_t r2, Lap< dimension > lap) const |
| Evaluate Laplacian of this RBF wrt. More... | |
| scalar_t | operator() (scalar_t r2) const |
| Evaluate this RBF given squared radial distance. More... | |
Public Types | |
| typedef scal_t | scalar_t |
| Scalar type used for computations. More... | |
Friends | |
| template<typename V > | |
| std::ostream & | operator<< (std::ostream &os, const Gaussian< V > &m) |
| Output basic information about given Gaussian RBF. More... | |
Private Attributes | |
| scalar_t | shape_ |
| Shape parameter. More... | |
| mm::Gaussian< scal_t >::Gaussian | ( | scalar_t | shape = 1.0 | ) |
Creates a Gaussian RBF with shape parameter shape. The shape should be positive.
Definition at line 17 of file Gaussian.hpp.
|
inline |
Evaluate this RBF given squared radial distance.
Definition at line 63 of file Gaussian_fwd.hpp.
|
inline |
Evaluate derivative of this RBF wrt.
r2 at given point.
| r2 | Squared radial distance. |
| derivative | Order of derivative to evaluate. |
| Assertion | fails if derivative order is negative. |
Definition at line 22 of file Gaussian.hpp.
|
inline |
Evaluate Laplacian of this RBF wrt.
r at given point.
| r2 | Squared radial distance. |
| lap | Laplacian operator object. |
|
inline |
Sets shape parameter to a new value.
Definition at line 44 of file Gaussian_fwd.hpp.
|
inline |
Returns shape parameter.
Definition at line 41 of file Gaussian_fwd.hpp.
|
friend |
Output basic information about given Gaussian RBF.
|
private |
Shape parameter.
Definition at line 34 of file Gaussian_fwd.hpp.