pub struct RandomWalk {
pub dimension: usize,
pub steps: Vec<Vec<i64>>,
pub step_distribution: WalkDistribution,
}Expand description
A multi-dimensional random walk.
Fields§
§dimension: usizeDimension of the walk.
steps: Vec<Vec<i64>>Steps taken so far: steps\[t\]\[d\] is the position at time t in dimension d.
step_distribution: WalkDistributionThe step distribution.
Implementations§
Source§impl RandomWalk
impl RandomWalk
pub fn new(dimension: usize, step_distribution: WalkDistribution) -> Self
Trait Implementations§
Source§impl Clone for RandomWalk
impl Clone for RandomWalk
Source§fn clone(&self) -> RandomWalk
fn clone(&self) -> RandomWalk
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RandomWalk
impl RefUnwindSafe for RandomWalk
impl Send for RandomWalk
impl Sync for RandomWalk
impl Unpin for RandomWalk
impl UnsafeUnpin for RandomWalk
impl UnwindSafe for RandomWalk
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