pub trait GaussianModePosteriorSampler: Send + Sync {
// Required method
fn sample_gaussian_mode_posterior(
&self,
mode: ArrayView1<'_, f64>,
precision: ArrayView2<'_, f64>,
) -> Result<GaussianModePosterior, String>;
}Expand description
The gam-inference-tier sampler for the never-fail Gaussian mode posterior
(custom-family covariance escalation). Implemented UP over
hmc_io::sample_gaussian_mode_posterior (which auto-derives its
NutsConfig::for_dimension(mode.len()) internally — that NUTS config never
crosses the contract) and injected DOWN via
set_gaussian_mode_posterior_sampler.
Required Methods§
Sourcefn sample_gaussian_mode_posterior(
&self,
mode: ArrayView1<'_, f64>,
precision: ArrayView2<'_, f64>,
) -> Result<GaussianModePosterior, String>
fn sample_gaussian_mode_posterior( &self, mode: ArrayView1<'_, f64>, precision: ArrayView2<'_, f64>, ) -> Result<GaussianModePosterior, String>
Sample N(mode, precision⁻¹). Err only for a structurally impossible
request (dimension mismatch, non-PSD precision after symmetrization) —
never for “did not converge”.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".