Struct rgsl::types::discrete_hankel::DiscreteHankel
source · pub struct DiscreteHankel { /* private fields */ }
Implementations§
source§impl DiscreteHankel
impl DiscreteHankel
sourcepub fn new(size: usize) -> Option<DiscreteHankel>
pub fn new(size: usize) -> Option<DiscreteHankel>
This function allocates a Discrete Hankel transform object of size size
.
sourcepub fn new_with_init(size: usize, nu: f64, xmax: f64) -> Option<DiscreteHankel>
pub fn new_with_init(size: usize, nu: f64, xmax: f64) -> Option<DiscreteHankel>
This function allocates a Discrete Hankel transform object of size size
and initializes it
for the given values of nu
and xmax
.
sourcepub fn init(&mut self, nu: f64, xmax: f64) -> Value
pub fn init(&mut self, nu: f64, xmax: f64) -> Value
This function initializes the transform self
for the given values of nu
and xmax
.
sourcepub fn apply(&self, f_in: &[f64]) -> Result<Vec<f64>, Value>
pub fn apply(&self, f_in: &[f64]) -> Result<Vec<f64>, Value>
This function applies the transform t to the array f_in whose size is equal to the size of
the transform. The result is stored in the array f_out
which must be of the same length.
Applying this function to its output gives the original data multiplied by (1/j_(\nu,M))^2, up to numerical errors.