List<Function1D<Double, Double>> basisFuncs = generator.generateSet(0, 12, 100, 3);
List<Function1D<Double, Double>> basisFuncsLog = generator.generateSet(-5, 3, 100, 3);
final GeneralizedLeastSquare gls = new GeneralizedLeastSquare();
final Interpolator1D interpolator = new CombinedInterpolatorExtrapolator(new DoubleQuadraticInterpolator1D(), new FlatExtrapolator1D());
// final double[] xData = new double[] {0.4, 0.9, 1.0, 1.8, 2.8, 5 };
// final double[] yData = new double[] {0.8, 4., 4.1, 5.6, 7., 8.1 };
final double[] xData = new double[] {7. / 365, 14 / 365., 21 / 365., 1 / 12., 3 / 12., 0.5, 0.75, 1, 5, 10 };