diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/correlations.rs | 33 |
1 files changed, 33 insertions, 0 deletions
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<f64>, + dataset_path:&'a str, + method: CorrelationMethod + +} + +impl <'a> Compute<'a>{ + fn new (method:&str,dataset_path:&'a str,x_vals:Vec<f64>) -> 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 |
