Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Returns a Matern exponential covariance Matrix.
\[ k(x, x') = \sigma^2 exp(-\frac{d(x, x')^2}{2l^2}) \]
where d(x, x') is the Euclidean distance.
T_x | type for each scalar |
T_s | type of parameter sigma |
T_l | type of parameter length scale |
x | std::vector of scalars that can be used in stan::math::distance |
sigma | standard deviation or magnitude |
length_scale | length scale |
std::domain | error if sigma <= 0, l <= 0, or x is nan or inf |
Definition at line 38 of file gp_exponential_cov.hpp.