pub struct Instance {
misinfo_informers: BTreeMap<u32, Vec<AgentIdx>>,
corection_informers: BTreeMap<u32, Vec<AgentIdx>>,
inhibition_informers: BTreeMap<u32, Vec<AgentIdx>>,
observation: Vec<AgentIdx>,
max_step_num_observation: usize,
}Fields§
§misinfo_informers: BTreeMap<u32, Vec<AgentIdx>>§corection_informers: BTreeMap<u32, Vec<AgentIdx>>§inhibition_informers: BTreeMap<u32, Vec<AgentIdx>>§observation: Vec<AgentIdx>§max_step_num_observation: usizeImplementations§
Source§impl Instance
impl Instance
fn receipt_prob<'a, V, R>( ins: &InstanceWrapper<'a, Exec<V>, V, R, Self>, info_idx: InfoIdx, ) -> V
Trait Implementations§
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,
Source§impl<V, R> InstanceExt<V, R, Exec<V>> for Instancewhere
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
R: Rng,
<V as SampleUniform>::Sampler: Sync + Send,
impl<V, R> InstanceExt<V, R, Exec<V>> for Instancewhere
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
R: Rng,
<V as SampleUniform>::Sampler: Sync + Send,
fn from_exec(exec: &Exec<V>, rng: &mut R) -> Self
fn is_continued(&self, _: &Exec<V>) -> bool
fn get_informers_with<'a>( ins: &mut InstanceWrapper<'a, Exec<V>, V, R, Self>, t: u32, ) -> Vec<(AgentIdx, InfoContent<'a, V>)>
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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