Trait AnalysisPipeline

Source
pub trait AnalysisPipeline<T> {
    // Required method
    fn process(&self, data: Vec<T>) -> HrvMetrics<T>;
}
Expand description

A trait for processing HRV data through an analysis pipeline.

Required Methods§

Source

fn process(&self, data: Vec<T>) -> HrvMetrics<T>

Processes a vector of RR intervals to compute HRV metrics.

§Arguments
  • data - A vector of RR intervals representing the time between heartbeats for a given window.
§Returns

Returns a struct containing the computed HRV metrics (time-domain, frequency-domain, and geometric).

Trait Implementations§

Source§

impl<T: Float + Sum<T> + Copy + Debug + Signed + 'static + AddAssign + Send + Sync + FromPrimitive> Default for Box<dyn AnalysisPipeline<T>>
where f64: From<T>,

Source§

fn default() -> Self

Returns a default instance of the DefaultPipeline.

This method returns the default DefaultPipeline that computes HRV metrics using default methods.

Implementors§