pmcore::prelude::simulator::equation

Trait Predictions

pub trait Predictions: Default {
    // Required methods
    fn squared_error(&self) -> f64;
    fn get_predictions(&self) -> Vec<Prediction>;

    // Provided method
    fn new(_nparticles: usize) -> Self { ... }
}

Required Methods§

fn squared_error(&self) -> f64

fn get_predictions(&self) -> Vec<Prediction>

Provided Methods§

fn new(_nparticles: usize) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl Predictions for ArrayBase<OwnedRepr<Prediction>, Dim<[usize; 2]>>

Implementors§