pub struct StateOpinions<V> {Show 13 fields
pub psi: OpinionD1<Psi, V>,
pub phi: OpinionD1<Phi, V>,
pub o: OpinionD1<O, V>,
pub fo: OpinionD1<FO, V>,
pub ko: OpinionD1<KO, V>,
pub h_psi_if_phi1: MArrD1<Psi, SimplexD1<H, V>>,
pub h_b_if_phi1: MArrD1<B, SimplexD1<H, V>>,
pub fpsi: OpinionD1<FPsi, V>,
pub fphi: OpinionD1<FPhi, V>,
pub fh_fpsi_if_fphi1: MArrD1<FPsi, SimplexD1<FH, V>>,
pub kpsi: OpinionD1<KPsi, V>,
pub kphi: OpinionD1<KPhi, V>,
pub kh_kpsi_if_kphi1: MArrD1<KPsi, SimplexD1<KH, V>>,
}Fields§
§psi: OpinionD1<Psi, V>§phi: OpinionD1<Phi, V>§o: OpinionD1<O, V>§fo: OpinionD1<FO, V>§ko: OpinionD1<KO, V>§h_psi_if_phi1: MArrD1<Psi, SimplexD1<H, V>>§h_b_if_phi1: MArrD1<B, SimplexD1<H, V>>§fpsi: OpinionD1<FPsi, V>§fphi: OpinionD1<FPhi, V>§fh_fpsi_if_fphi1: MArrD1<FPsi, SimplexD1<FH, V>>§kpsi: OpinionD1<KPsi, V>§kphi: OpinionD1<KPhi, V>§kh_kpsi_if_kphi1: MArrD1<KPsi, SimplexD1<KH, V>>Implementations§
Source§impl<V: MyFloat> StateOpinions<V>
impl<V: MyFloat> StateOpinions<V>
pub fn reset(
&mut self,
psi: OpinionD1<Psi, V>,
phi: OpinionD1<Phi, V>,
o: OpinionD1<O, V>,
fo: OpinionD1<FO, V>,
ko: OpinionD1<KO, V>,
h_psi_if_phi1: MArrD1<Psi, SimplexD1<H, V>>,
h_b_if_phi1: MArrD1<B, SimplexD1<H, V>>,
fpsi: OpinionD1<FPsi, V>,
fphi: OpinionD1<FPhi, V>,
fh_fpsi_if_fphi1: MArrD1<FPsi, SimplexD1<FH, V>>,
kpsi: OpinionD1<KPsi, V>,
kphi: OpinionD1<KPhi, V>,
kh_kpsi_if_kphi1: MArrD1<KPsi, SimplexD1<KH, V>>,
)where
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
Open01: Distribution<V>,
fn receive( &self, p: &InfoContent<'_, V>, trusts: &Trusts<V>, ded: &DeducedOpinions<V>, ) -> DiffOpinions<V>
fn predict( &self, p: &InfoContent<'_, V>, trusts: &Trusts<V>, ded: &DeducedOpinions<V>, ) -> PredDiffOpinions<V>
fn h_psi_b_if_phi1( &self, b: &MArrD1<B, V>, h: &MArrD1<H, V>, ) -> MArrD2<Psi, B, SimplexD1<H, V>>
fn deduce_fh( &self, fh_fphi_fpsi_fo: &MArrD3<FPhi, FPsi, FO, SimplexD1<FH, V>>, base_rate_fh: &MArrD1<FH, V>, ) -> OpinionD1<FH, V>
fn deduce_kh( &self, kh_kphi_kpsi_ko: &MArrD3<KPhi, KPsi, KO, SimplexD1<KH, V>>, base_rate_kh: &MArrD1<KH, V>, ) -> OpinionD1<KH, V>
fn deduce_b( &self, kh: &OpinionD1<KH, V>, b_kh_o: &MArrD2<KH, O, SimplexD1<B, V>>, base_rate_b: &MArrD1<B, V>, ) -> OpinionD1<B, V>
fn deduce_h( &self, b: &OpinionD1<B, V>, h_phi_psi_b: &MArrD3<Phi, Psi, B, SimplexD1<H, V>>, base_rate_h: &MArrD1<H, V>, ) -> OpinionD1<H, V>
Trait Implementations§
Source§impl<V: Debug> Debug for StateOpinions<V>
impl<V: Debug> Debug for StateOpinions<V>
Source§impl<V: Default> Default for StateOpinions<V>
impl<V: Default> Default for StateOpinions<V>
Source§fn default() -> StateOpinions<V>
fn default() -> StateOpinions<V>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<V> Freeze for StateOpinions<V>where
V: Freeze,
impl<V> RefUnwindSafe for StateOpinions<V>where
V: RefUnwindSafe,
impl<V> Send for StateOpinions<V>where
V: Send,
impl<V> Sync for StateOpinions<V>where
V: Sync,
impl<V> Unpin for StateOpinions<V>where
V: Unpin,
impl<V> UnwindSafe for StateOpinions<V>where
V: UnwindSafe,
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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