Struct rgsl::types::discrete_hankel::DiscreteHankel [−][src]
pub struct DiscreteHankel { /* fields omitted */ }
Methods
impl DiscreteHankel
[src]
impl DiscreteHankel
pub fn new(size: usize) -> Option<DiscreteHankel>
[src]
pub fn new(size: usize) -> Option<DiscreteHankel>
This function allocates a Discrete Hankel transform object of size size
.
pub fn new_with_init(size: usize, nu: f64, xmax: f64) -> Option<DiscreteHankel>
[src]
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
.
pub fn init(&mut self, nu: f64, xmax: f64) -> Value
[src]
pub fn init(&mut self, nu: f64, xmax: f64) -> Value
This function initializes the transform self
for the given values of nu
and xmax
.
pub fn apply(&self, f_in: &[f64]) -> Result<Vec<f64>, Value>
[src]
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.
pub fn x_sample(&self, n: i32) -> f64
[src]
pub 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.
pub fn k_sample(&self, n: i32) -> f64
[src]
pub 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.
Trait Implementations
impl Drop for DiscreteHankel
[src]
impl Drop for DiscreteHankel
Auto Trait Implementations
impl !Send for DiscreteHankel
impl !Send for DiscreteHankel
impl !Sync for DiscreteHankel
impl !Sync for DiscreteHankel