[][src]Struct biosignal::Signal

pub struct Signal {
    pub data: Vec<f64>,
    pub sample_rate: usize,
}

Signal consists of:

  • data
  • sample_rate which is number of samples per second (Sampling frequency)

Fields

data: Vec<f64>sample_rate: usize

Implementations

impl Signal[src]

pub fn new(data: Vec<f64>, sample_rate: usize) -> Signal[src]

create new signal with a given length and sample rate

pub fn len(&self) -> usize[src]

Length of the signal buffer

Auto Trait Implementations

impl RefUnwindSafe for Signal

impl Send for Signal

impl Sync for Signal

impl Unpin for Signal

impl UnwindSafe for Signal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.