pub struct DependencyChainState {
pub chain: Vec<usize>,
pub mean: Vec<f32>,
pub std: Vec<f32>,
pub link_corr: Vec<f32>,
}Expand description
Fitted state for the DependencyChain model after one call to
ProbabilityModel::fit.
All four vectors have length genome_dim and are indexed by dimension
(not chain position), except chain which is indexed by chain position.
On the prior path (prev = None) the chain is the natural order
[0, 1, …, D-1], all means are init_mean, all standard deviations are
init_std, and all link_corr entries are 0.0.
Fields§
§chain: Vec<usize>Dimension permutation: chain[t] is the dimension index sampled at
chain position t. chain[0] is the root (marginal Gaussian).
mean: Vec<f32>Per-dimension MLE mean (indexed by dimension, not chain position).
std: Vec<f32>Per-dimension standard deviation, floored at
DependencyChainParams::min_variance.sqrt() (indexed by
dimension).
link_corr: Vec<f32>Pearson correlation of dimension d with its chain parent, after the
|r| < 2/√k significance filter and [-0.9999, 0.9999] clamp.
The root dimension’s entry is 0.0 (unused in sampling).
Trait Implementations§
Source§impl Clone for DependencyChainState
impl Clone for DependencyChainState
Source§fn clone(&self) -> DependencyChainState
fn clone(&self) -> DependencyChainState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DependencyChainState
impl RefUnwindSafe for DependencyChainState
impl Send for DependencyChainState
impl Sync for DependencyChainState
impl Unpin for DependencyChainState
impl UnsafeUnpin for DependencyChainState
impl UnwindSafe for DependencyChainState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more