pub struct AgentExt<V> {
trusts: InfoMap<V>,
arrival_prob: Option<V>,
viewing_probs: Option<(V, V)>,
plural_ignores: Option<(V, V)>,
visit_prob: Option<V>,
psi1_support_level: V,
}Fields§
§trusts: InfoMap<V>§arrival_prob: Option<V>§viewing_probs: Option<(V, V)>(friend, social)
plural_ignores: Option<(V, V)>(friend, social)
visit_prob: Option<V>§psi1_support_level: VImplementations§
Source§impl<V> AgentExt<V>
impl<V> AgentExt<V>
fn get_trust<R: Rng>( &mut self, label: InfoLabel, exec: &Exec<V>, rng: &mut R, ) -> V
fn get_plural_ignorances<'a, R: Rng>( &mut self, exec: &Exec<V>, rng: &mut R, ) -> (V, V)
fn viewing_probs<'a, R: Rng>(&mut self, exec: &Exec<V>, rng: &mut R) -> (V, V)
fn arrival_prob<'a, R: Rng>(&mut self, exec: &Exec<V>, rng: &mut R) -> V
Trait Implementations§
Source§impl<V> AgentExtTrait<V> for AgentExt<V>where
V: MyFloat,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
Open01: Distribution<V>,
<V as SampleUniform>::Sampler: Sync + Send,
impl<V> AgentExtTrait<V> for AgentExt<V>where
V: MyFloat,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
Open01: Distribution<V>,
<V as SampleUniform>::Sampler: Sync + Send,
type Exec = Exec<V>
type Ix = Instance
fn informer_trusts<'a, R: Rng>( &mut self, ins: &mut InstanceWrapper<'a, Self::Exec, V, R, Self::Ix>, _: InfoIdx, ) -> Trusts<V>
fn visit_prob<R: Rng>(&mut self, exec: &Self::Exec, rng: &mut R) -> V
fn reset_core<R: Rng>( ops: &mut MyOpinions<V>, decision: &mut Decision<V>, exec: &Self::Exec, rng: &mut R, )
fn reset<R: Rng>(&mut self, idx: usize, exec: &Exec<V>, _: &mut R)
Source§impl<V> Executor<V, AgentExt<V>, Instance> for Exec<V>where
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
<V as SampleUniform>::Sampler: Sync + Send,
impl<V> Executor<V, AgentExt<V>, Instance> for Exec<V>where
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
<V as SampleUniform>::Sampler: Sync + Send,
fn num_agents(&self) -> usize
fn graph(&self) -> &GraphB
fn execute<R>(
&self,
memory: &mut Memory<V, Ax>,
num_iter: u32,
rng: R,
) -> Vec<Stat>where
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
R: Rng,
Ix: InstanceExt<V, R, Self>,
Ax: AgentExtTrait<V, Exec = Self, Ix = Ix>,
Self: Sized,
Auto Trait Implementations§
impl<V> Freeze for AgentExt<V>where
V: Freeze,
impl<V> RefUnwindSafe for AgentExt<V>where
V: RefUnwindSafe,
impl<V> Send for AgentExt<V>where
V: Send,
impl<V> Sync for AgentExt<V>where
V: Sync,
impl<V> Unpin for AgentExt<V>where
V: Unpin,
impl<V> UnwindSafe for AgentExt<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