Struct rgsl::types::discrete_hankel::DiscreteHankel
[−]
[src]
pub struct DiscreteHankel { /* fields omitted */ }
Methods
impl DiscreteHankel
[src]
fn new(size: usize) -> Option<DiscreteHankel>
This function allocates a Discrete Hankel transform object of size size
.
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
.
fn init(&mut self, nu: f64, xmax: f64) -> Value
This function initializes the transform self
for the given values of nu
and xmax
.
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.
fn x_sample(&self, n: i32) -> f64
This function returns the value of the n-th sample point in the unit interval, (j_{\nu,n+1}/j_{\nu,M}) X. These are the points where the function f(t) is assumed to be sampled.
fn k_sample(&self, n: i32) -> f64
This function returns the value of the n-th sample point in “k-space”, j_{\nu,n+1}/X.