This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.interpolate import InterpolatedUnivariateSpline as spline | |
class ErrorPropagationSpline(object): | |
""" | |
Does a spline fit, but returns both the spline value and associated uncertainty. | |
""" | |
def __init__(self, x, y, yerr, N=1000, *args, **kwargs): | |
""" | |
See docstring for InterpolatedUnivariateSpline |