Skip to main content

DiscreteMapIterate

Trait DiscreteMapIterate 

Source
pub trait DiscreteMapIterate {
    // Required methods
    fn dim(&self) -> usize;
    fn step(&self, state: &[f64]) -> Vec<f64>;

    // Provided method
    fn orbit(&self, init: &[f64], n: usize) -> Vec<Vec<f64>> { ... }
}
Expand description

A discrete map that can be iterated.

Required Methods§

Source

fn dim(&self) -> usize

State dimension.

Source

fn step(&self, state: &[f64]) -> Vec<f64>

Advance the state by one step. state must have length dim().

Provided Methods§

Source

fn orbit(&self, init: &[f64], n: usize) -> Vec<Vec<f64>>

Compute an orbit of length n starting from init.

Implementors§