1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// use num_traits::{Float, NumOps};
// use crate::EmpiricalCDF;
// /// There is a lot of different methods to estimate quantile,
// pub trait Quantile {
// fn quantile<F>(&self, cdf: EmpiricalCDF<F>) -> impl Fn(F) -> F
// where
// F: Float + Copy;
// }
// struct HyndmanFan {
// }
// struct HarrellDavis {
// }
// struct SfakianakisVerginis {
// }
// trait Interpolate<X, Y> {
// fn interpolation<D>(&self, data: D) -> impl Fn(X) -> Y
// where
// D: AsRef<[(X, Y)]>;
// }
// struct Interpolator<X, Y> {
// data: Vec<(X, Y)>
// }
// impl Interpolator {
// fn interpolate<I>(interp: I) -> impl Fn(X) -> Y
// where
// I: Interpolate
// {
// interp.interpolation(self.data)
// }
// }