//! # Biosignals
//!//! A biosignal is any signal in living beings that can be continually measured and monitored.
//!pubmodio;pubmoderror;/// Signal consists of:
/// * data
/// * sample_rate which is number of samples per second (Sampling frequency)
pubstructSignal{pubdata:Vec<f64>,
pubsample_rate:usize}implSignal{/// create new signal with a given length and sample rate
pubfnnew(data:Vec<f64>, sample_rate:usize)-> Signal{
Signal { data, sample_rate }}/// Length of the signal buffer
pubfnlen(&self)->usize{self.data.len()}}