In [1]:
#loess tests
import loess
In [2]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
In [3]:
x = np.linspace(0, 10)
In [4]:
y = np.sin(x) + 0.2*np.random.rand(len(x))
In [5]:
plt.plot(x, y)
Out[5]:
In [ ]:
In [6]:
plt.plot(x, y)
plt.plot(x, 0.1 + loess.loess(x,y,1, kernel="Gaussian"))
plt.plot(x, 0.1 + loess.loess(x,y,1, kernel="TriCube"))
Out[6]:
In [71]:
plt.plot(x, w)
Out[71]:
In [ ]: