From d47c86bbab741bb21bee60b6e4a855194c0773f2 Mon Sep 17 00:00:00 2001
From: Le Roux Erwan <erwan.le-roux@irstea.fr>
Date: Mon, 18 Mar 2019 11:12:01 +0100
Subject: [PATCH] [EXTREME ESTIMATOR][EXTREME MODEL] add ideas for spline based
 margin model

---
 .../margin_model/spline_margin_model.py              | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 extreme_estimator/extreme_models/margin_model/spline_margin_model.py

diff --git a/extreme_estimator/extreme_models/margin_model/spline_margin_model.py b/extreme_estimator/extreme_models/margin_model/spline_margin_model.py
new file mode 100644
index 00000000..269e4db6
--- /dev/null
+++ b/extreme_estimator/extreme_models/margin_model/spline_margin_model.py
@@ -0,0 +1,12 @@
+
+"""
+Potentially, we could implement a spline model for the margin, to check results from Gaume
+
+rbpspline
+
+Fits a penalized spline with radial basis functions to data
+
+Examplesn <- 200x <- runif(n)fun <- function(x) sin(3 * pi * x)y <- fun(x) + rnorm(n, 0, sqrt(0.4))
+knots <- quantile(x, prob = 1:(n/4) / (n/4 + 1))fitted <- rbpspline(y, x, knots = knots, degree = 3)fittedplot(x, y)lines(fitted, col = 2)
+
+"""
\ No newline at end of file
-- 
GitLab