|
CMP++: Uncertainty Quantification & Bayesian Calibration
|
Rectangular (uniform) density kernel. More...
#include <kernel++.h>


Public Member Functions | |
| Uniform ()=default | |
| double | eval (const Eigen::VectorXd &z_diff) const override |
| Evaluates the unnormalized uniform kernel. | |
| double | normalizationConstant (const size_t &dim) const override |
| Returns the normalization constant for a given dimension. | |
| double | applyToGradient (const Eigen::VectorXd &z, const Eigen::VectorXd &grad_z_i) const override |
| Computes the gradient of the kernel evaluation (always 0 since it is flat). | |
Public Member Functions inherited from cmp::kernel::Kernel | |
| virtual | ~Kernel ()=default |
Static Public Member Functions | |
| static std::shared_ptr< Kernel > | make () |
| Factory method for creating a Uniform kernel. | |
Rectangular (uniform) density kernel.
Mathematical Formulation The multivariate uniform kernel:
\[ K(\mathbf{z}) \propto \begin{cases} 1 & \text{if } \|\mathbf{z}\|_\infty \le 1/2 \\ 0 & \text{otherwise} \end{cases} \]
|
default |
|
overridevirtual |
Computes the gradient of the kernel evaluation (always 0 since it is flat).
Implements cmp::kernel::Kernel.
|
overridevirtual |
Evaluates the unnormalized uniform kernel.
Implements cmp::kernel::Kernel.
|
inlinestatic |
Factory method for creating a Uniform kernel.
|
overridevirtual |
Returns the normalization constant for a given dimension.
Implements cmp::kernel::Kernel.