Trait pmcore::prelude::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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

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

§

fn new(nparticles: usize) -> ArrayBase<OwnedRepr<Prediction>, Dim<[usize; 2]>>

§

fn squared_error(&self) -> f64

§

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

Implementors§