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