Struct rgsl::types::discrete_hankel::DiscreteHankel
source · [−]pub struct DiscreteHankel { /* private fields */ }
Implementations
sourceimpl DiscreteHankel
impl DiscreteHankel
sourcepub fn new(size: usize) -> Option<Self>
pub fn new(size: usize) -> Option<Self>
This function allocates a Discrete Hankel transform object of size size
.
sourcepub fn new_with_init(size: usize, nu: f64, xmax: f64) -> Option<Self>
pub fn new_with_init(size: usize, nu: f64, xmax: f64) -> Option<Self>
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(&mut self, f_in: &[f64]) -> (Value, Vec<f64>)
pub fn apply(&mut self, f_in: &[f64]) -> (Value, Vec<f64>)
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DiscreteHankel
impl !Send for DiscreteHankel
impl !Sync for DiscreteHankel
impl Unpin for DiscreteHankel
impl UnwindSafe for DiscreteHankel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more