pub struct State<B>(/* private fields */);Expand description
PBIL state.
Implementations§
Source§impl<B> State<B>
impl<B> State<B>
Sourcepub fn new(probabilities: Vec<Probability>, rng: Xoshiro256PlusPlus) -> Self
pub fn new(probabilities: Vec<Probability>, rng: Xoshiro256PlusPlus) -> Self
Return custom initial state.
Sourcepub fn evaluation(&self) -> Option<&B>
pub fn evaluation(&self) -> Option<&B>
Return result of evaluation.
Sourcepub fn best_point(&self) -> Vec<bool>
pub fn best_point(&self) -> Vec<bool>
Return the best point discovered.
Trait Implementations§
Source§impl<B> Probabilities for State<B>
impl<B> Probabilities for State<B>
Source§fn probabilities(&self) -> &[Probability]
fn probabilities(&self) -> &[Probability]
Return probabilities.
impl<B> StructuralPartialEq for State<B>
Auto Trait Implementations§
impl<B> Freeze for State<B>where
B: Freeze,
impl<B> RefUnwindSafe for State<B>where
B: RefUnwindSafe,
impl<B> Send for State<B>where
B: Send,
impl<B> Sync for State<B>where
B: Sync,
impl<B> Unpin for State<B>where
B: Unpin,
impl<B> UnwindSafe for State<B>where
B: 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