From 43997cd36e6a63c58cfde50fa0ea3ae640c790a1 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 26 Apr 2022 16:50:45 +0300 Subject: document todo tasks --- src/correlations.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/correlations.rs b/src/correlations.rs index 867675c..4a516b3 100644 --- a/src/correlations.rs +++ b/src/correlations.rs @@ -133,17 +133,17 @@ mod test{ struct Compute <'a>{ - x_vals:Vec, + x_vals:&'a [f64], dataset_path:&'a str, method: CorrelationMethod } impl <'a> Compute<'a>{ - fn new (method:&str,dataset_path:&'a str,x_vals:Vec) -> Self{ + fn new (method:&str,dataset_path:&'a str,x_vals:&'a [f64]) -> Self{ Self { - x_vals:x_vals, + x_vals: x_vals, dataset_path:dataset_path, method: CorrelationMethod::pearson } @@ -151,7 +151,14 @@ impl <'a> Compute<'a>{ } fn compute(){ - + + //where the magic happens + //reading the file ?? should happen in new + // compute for each pair() + + //things todo retention sort // + + //work on correlation method enum } } -- cgit 1.4.1