Struct rgsl::types::filter::FilterGaussianWorkspace
source · pub struct FilterGaussianWorkspace { /* private fields */ }
Available on crate feature
v2_5
only.Implementations§
source§impl FilterGaussianWorkspace
impl FilterGaussianWorkspace
pub fn new(K: usize) -> Option<Self>
sourcepub fn gaussian(
&mut self,
endtype: FilterEnd,
alpha: f64,
order: usize,
x: &VectorF64,
y: &mut VectorF64
) -> Result<(), Value>
pub fn gaussian( &mut self, endtype: FilterEnd, alpha: f64, order: usize, x: &VectorF64, y: &mut VectorF64 ) -> Result<(), Value>
This function applies a Gaussian filter parameterized by alpha
to the input vector x
,
storing the output in y
. The derivative order is specified by order
, with 0
corresponding to a Gaussian, 1
corresponding to a first derivative Gaussian, and so on.
The parameter endtype
specifies how the signal end points are handled. It is allowed for
x
= y
for an in-place filter.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FilterGaussianWorkspace
impl !Send for FilterGaussianWorkspace
impl !Sync for FilterGaussianWorkspace
impl Unpin for FilterGaussianWorkspace
impl UnwindSafe for FilterGaussianWorkspace
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more