pub fn scalar(basis: B, optimiser: O) -> Self
    where
        B: spaces::Space,
    {
        let n: usize = basis.dim().into();
        let weights = ndarray::Array1::zeros(n);

        LFA {
            basis,
            weights,
            optimiser,
        }
    }
/// Construct an `ScalarLFA` using a given basis representation and
/// optimisation routine. The weights are initialised with a vector of
/// zeros.
Construct an `ScalarLFA` using a given basis representation and
optimisation routine. The weights are initialised with a vector of
zeros.
Construct an ` ScalarLFA ` using a given basis representation and optimisation routine . The weights are initialised with a vector of zeros .
pub fn scalar(basis: B, optimiser: O) -> Self
    where
        B: spaces::Space,
    {
        let n: usize = basis.dim().into();
        let weights = ndarray::Array1::zeros(n);
        LFA {
            basis,
            weights,
            optimiser,
        }
    }
pub fn scalar ( basis : B , optimiser : O ) -> Self where B : spaces :: Space , { let n : usize = basis . dim ( ) . into ( ) ; let weights = ndarray :: Array1 :: zeros ( n ) ; LFA { basis , weights , optimiser , } }
Construct an `ScalarLFA` using a given basis representation and
optimisation routine.
Construct an ` ScalarLFA ` using a given basis representation and optimisation routine .
basis
B
optimiser
O
basis
B
optimiser
O