Trait basic_dsp_vector::Vector
source · pub trait Vector<T>: MetaData + ResizeOps + FloatIndex<RangeFull, Output = [T]> + FloatIndex<Range<usize>> + FloatIndex<RangeFrom<usize>, Output = [T]> + FloatIndex<RangeTo<usize>> + FloatIndex<usize>where
T: RealNumber,{
// Required methods
fn delta(&self) -> T;
fn set_delta(&mut self, delta: T);
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn points(&self) -> usize;
fn get_multicore_settings(&self) -> &MultiCoreSettings;
fn set_multicore_settings(&mut self, settings: MultiCoreSettings);
fn alloc_len(&self) -> usize;
}
Expand description
A trait for vector types.
Required Methods§
sourcefn delta(&self) -> T
fn delta(&self) -> T
The x-axis delta. If domain
is time domain then delta
is in [s]
,
in frequency domain delta
is in [Hz]
.
sourcefn set_delta(&mut self, delta: T)
fn set_delta(&mut self, delta: T)
Sets the x-axis delta. If domain
is time domain then delta
is in [s]
,
in frequency domain delta
is in [Hz]
.
sourcefn len(&self) -> usize
fn len(&self) -> usize
The number of valid elements in the vector. This can be changed
with the Resize
trait.
sourcefn points(&self) -> usize
fn points(&self) -> usize
The number of valid points. If the vector is complex then every valid point consists of two floating point numbers, while for real vectors every point only consists of one floating point number.
sourcefn get_multicore_settings(&self) -> &MultiCoreSettings
fn get_multicore_settings(&self) -> &MultiCoreSettings
Gets the multi core settings which determine how the work is split between several cores if the amount of data gets larger.
sourcefn set_multicore_settings(&mut self, settings: MultiCoreSettings)
fn set_multicore_settings(&mut self, settings: MultiCoreSettings)
Sets the multi core settings which determine how the work is split between several cores if the amount of data gets larger.