Classes | |
| class | PsisLaplace |
| struct | PsisLaplaceOptions |
| struct | PsisLaplaceState |
| class | ScopedKernelState |
| class | SliceSampler |
| struct | SliceSamplerOptions |
| struct | SliceSamplerState |
| class | SteinVariational |
| struct | SteinVariationalConfig |
| class | TCovSecondOrder |
Functions | |
| double | logGaussianDensity (const Eigen::VectorXd &delta, const Eigen::MatrixXd &cov_chol) |
| std::vector< double > | selfNormalisedWeights (const std::vector< double > &log_w) |
| double | estimateParetoKHat (const std::vector< double > &weights_descending, int M_pareto) |
| double gpr::laplace::estimateParetoKHat | ( | const std::vector< double > & | weights_descending, |
| int | M_pareto ) |
Hill-style estimator of the Pareto shape k_hat on the upper-tail of the weight distribution. weights_descending must be sorted high to low (caller responsibility). M_pareto is the number of upper-tail samples to use; Vehtari 2024 recommends M_pareto = min(K/5, 3*sqrt(K)) but for K = 16 that is 3, which is too few for the production code path and the diagnostic; we use min(K-1, max(K/5, 8)) to keep the diagnostic honest. Returns 0 if M_pareto < 2 or all weights are equal.
Definition at line 58 of file PsisLaplace.cpp.
| double gpr::laplace::logGaussianDensity | ( | const Eigen::VectorXd & | delta, |
| const Eigen::MatrixXd & | cov_chol ) |
Log-density of N(0, Sigma) at z, given the Cholesky factor L of Sigma (Sigma = L L^T) and the offset (theta - theta_map). Returns -0.5 (theta - theta_map)^T Sigma^{-1} (theta - theta_map)
Definition at line 21 of file PsisLaplace.cpp.
| std::vector< double > gpr::laplace::selfNormalisedWeights | ( | const std::vector< double > & | log_w | ) |
Self-normalised importance weights. Numerically stable: subtracts max(log_w) before exp to avoid overflow. Returns weights summing to 1. If log_w is empty, returns empty.
Definition at line 39 of file PsisLaplace.cpp.