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]:
[<matplotlib.lines.Line2D at 0x7f76ec57fb00>]

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]:
[<matplotlib.lines.Line2D at 0x7f76ec51c0f0>]

In [71]:
plt.plot(x, w)


Out[71]:
[<matplotlib.lines.Line2D at 0x7f4ba23e9d30>]

In [ ]: