diff options
| author | Alexander <alexanderkabua@gmail.com> | 2022-04-26 16:50:45 +0300 |
|---|---|---|
| committer | Alexander <alexanderkabua@gmail.com> | 2022-04-26 16:50:45 +0300 |
| commit | 43997cd36e6a63c58cfde50fa0ea3ae640c790a1 (patch) | |
| tree | 9b333e5ca517940d6fed09dfaa21547d28a8ac06 /src | |
| parent | cb1cba56eacb7307c29a9875be5bfdb32895acaf (diff) | |
| download | correlation_rust-43997cd36e6a63c58cfde50fa0ea3ae640c790a1.tar.gz | |
document todo tasks
Diffstat (limited to 'src')
| -rw-r--r-- | src/correlations.rs | 15 |
1 files changed, 11 insertions, 4 deletions
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<f64>, + 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<f64>) -> 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 } } |
