about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander <alexanderkabua@gmail.com>2022-04-26 16:39:08 +0300
committerAlexander <alexanderkabua@gmail.com>2022-04-26 16:39:08 +0300
commitcb1cba56eacb7307c29a9875be5bfdb32895acaf (patch)
tree9f715287185d41186c03a73b24e4044a44d1de1d /src
parent1bb2f52839b75b9c2ee9aa08a11d7d3823dbe647 (diff)
downloadcorrelation_rust-cb1cba56eacb7307c29a9875be5bfdb32895acaf.tar.gz
initial setup to integrate compute
Diffstat (limited to 'src')
-rw-r--r--src/correlations.rs33
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