Struct StateOpinions

Source
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>

Source

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>>, )

Source

fn receive( &self, p: &InfoContent<'_, V>, trusts: &Trusts<V>, ded: &DeducedOpinions<V>, ) -> DiffOpinions<V>

Source

fn predict( &self, p: &InfoContent<'_, V>, trusts: &Trusts<V>, ded: &DeducedOpinions<V>, ) -> PredDiffOpinions<V>

Source

fn h_psi_b_if_phi1( &self, b: &MArrD1<B, V>, h: &MArrD1<H, V>, ) -> MArrD2<Psi, B, SimplexD1<H, V>>

Source

fn deduce_fh( &self, fh_fphi_fpsi_fo: &MArrD3<FPhi, FPsi, FO, SimplexD1<FH, V>>, base_rate_fh: &MArrD1<FH, V>, ) -> OpinionD1<FH, V>

Source

fn deduce_kh( &self, kh_kphi_kpsi_ko: &MArrD3<KPhi, KPsi, KO, SimplexD1<KH, V>>, base_rate_kh: &MArrD1<KH, V>, ) -> OpinionD1<KH, V>

Source

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>

Source

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<V: Default> Default for StateOpinions<V>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more