pub struct Prior { /* private fields */ }Expand description
A Gaussian prior on free parameters: a measurement of them made
elsewhere, with mean m and covariance C = LLᵀ.
Implementations§
Source§impl Prior
impl Prior
Sourcepub fn measured(parameter: usize, mean: f64, sd: f64) -> Self
pub fn measured(parameter: usize, mean: f64, sd: f64) -> Self
A measurement mean ± sd of the parameter at index parameter in the
ParameterSet; poisson_fit refuses a mean that is not finite or
an sd that is not finite and positive.
A joint measurement of the parameters at parameters in the
ParameterSet, with mean and covariance in that order.
§Errors
FittingError::LengthMismatch if mean or covariance does not
match parameters; FittingError::InvalidConfig if parameters is
empty or lists a parameter twice, mean is not finite, or covariance
is not finite, not symmetric to 1e-12 of √(Cᵢᵢ Cⱼⱼ), or not positive
definite with the condition number of its correlation matrix at most
1e10; FittingError::EvaluationFailed if the eigendecomposition of
that matrix fails.