Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ multi_gp_lpdf() [1/2]

template<bool propto, typename T_y , typename T_covar , typename T_w , require_all_matrix_t< T_y, T_covar > * = nullptr, require_col_vector_t< T_w > * = nullptr>
return_type_t< T_y, T_covar, T_w > stan::math::multi_gp_lpdf ( const T_y &  y,
const T_covar &  Sigma,
const T_w &  w 
)

The log of a multivariate Gaussian Process for the given y, Sigma, and w.

y is a dxN matrix, where each column is a different observation and each row is a different output dimension. The Gaussian Process is assumed to have a scaled kernel matrix with a different scale for each output dimension. This distribution is equivalent to: for (i in 1:d) row(y, i) ~ multi_normal(0, (1/w[i])*Sigma).

Template Parameters
T_ytype of scalar
T_covartype of kernel
T_wtype of weight
Parameters
yA dxN matrix
SigmaThe NxN kernel matrix
wA d-dimensional vector of positive inverse scale parameters for each output.
Returns
The log of the multivariate GP density.
Exceptions
std::domain_errorif Sigma is not square, not symmetric, or not semi-positive definite.

Definition at line 36 of file multi_gp_lpdf.hpp.