pub fn chebyshev<A: FloatNum>(n: usize) -> BaseR2r<A>
Expand description

Function space for Chebyshev Polynomials

T_k

Example

Transform array to function space.

use funspace::chebyshev;
use funspace::traits::BaseTransform;
use ndarray::Array1;
let ch = chebyshev::<f64>(10);
let mut y = Array1::<f64>::linspace(0., 9., 10);
let yhat: Array1<f64> = ch.forward(&mut y, 0);