Skip to main content

FittedModel

Trait FittedModel 

Source
pub trait FittedModel:
    Debug
    + Send
    + Sync {
    // Required method
    fn forward(&self, index: &[f64]) -> Option<Vec<f64>>;

    // Provided method
    fn inverse(&self, _position: &[f64]) -> Option<Vec<f64>> { ... }
}
Expand description

A fitted model from index to frame (R3’): GCP polynomial, RPC, TPS.

Required Methods§

Source

fn forward(&self, index: &[f64]) -> Option<Vec<f64>>

Provided Methods§

Source

fn inverse(&self, _position: &[f64]) -> Option<Vec<f64>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§