ApproximationMethod

Trait ApproximationMethod 

Source
pub trait ApproximationMethod {
    const NAME: &'static str;
    const SUPPORTS_INCREMENTAL: bool;
    const HAS_ERROR_BOUNDS: bool;
    const COMPLEXITY: ComplexityClass;
}
Expand description

Phantom type to represent approximation methods

Required Associated Constants§

Source

const NAME: &'static str

Name of the approximation method

Source

const SUPPORTS_INCREMENTAL: bool

Whether this method supports incremental updates

Source

const HAS_ERROR_BOUNDS: bool

Whether this method provides theoretical error bounds

Source

const COMPLEXITY: ComplexityClass

Computational complexity class

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.

Implementors§

Source§

impl ApproximationMethod for FastfoodMethod

Source§

const NAME: &'static str = "Fastfood"

Source§

const SUPPORTS_INCREMENTAL: bool = false

Source§

const HAS_ERROR_BOUNDS: bool = true

Source§

const COMPLEXITY: ComplexityClass = ComplexityClass::DimensionDependent

Source§

impl ApproximationMethod for NystromMethod

Source§

const NAME: &'static str = "Nystrom"

Source§

const SUPPORTS_INCREMENTAL: bool = false

Source§

const HAS_ERROR_BOUNDS: bool = true

Source§

const COMPLEXITY: ComplexityClass = ComplexityClass::Quadratic

Source§

impl ApproximationMethod for RandomFourierFeatures

Source§

const NAME: &'static str = "RandomFourierFeatures"

Source§

const SUPPORTS_INCREMENTAL: bool = true

Source§

const HAS_ERROR_BOUNDS: bool = true

Source§

const COMPLEXITY: ComplexityClass = ComplexityClass::Linear