From cb1cba56eacb7307c29a9875be5bfdb32895acaf Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 26 Apr 2022 16:39:08 +0300 Subject: initial setup to integrate compute --- src/correlations.rs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'src') diff --git a/src/correlations.rs b/src/correlations.rs index 596240e..867675c 100644 --- a/src/correlations.rs +++ b/src/correlations.rs @@ -126,4 +126,37 @@ mod test{ } +} + + +//structure we need file for y vals,x_val ,correlation method to use + + +struct Compute <'a>{ + x_vals:Vec, + dataset_path:&'a str, + method: CorrelationMethod + +} + +impl <'a> Compute<'a>{ + fn new (method:&str,dataset_path:&'a str,x_vals:Vec) -> Self{ + + Self { + x_vals:x_vals, + dataset_path:dataset_path, + method: CorrelationMethod::pearson + } + + } + + fn compute(){ + + } + +} + +enum CorrelationMethod { + pearson, + spearman } \ No newline at end of file -- cgit 1.4.1