We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e14eab1 commit cd6f31fCopy full SHA for cd6f31f
README.md
@@ -35,6 +35,16 @@ To use this smoother in you project, add this to your `Cargo.toml`:
35
whittaker_smoother = "0.1"
36
```
37
38
+Now you can use the smoothing function as such:
39
+```rust
40
+// Here we use the WOOD_DATASET, but this can be any series that you would like to smooth
41
+let raw = Vec::from_iter(WOOD_DATASET.iter().map(|v| *v as f64));
42
+let lambda = 2e4;
43
+let order = 3;
44
+let smoothed = whittaker_smoother(&raw, lambda, order).unwrap();
45
+```
46
+And BAM, that's it! There is you perfectly smoothed series.
47
+
48
### Further Reading:
49
See the [papers](./papers/) folder for two papers showing additional details of the method.
50
0 commit comments