Back to index

python-biopython  1.60
Public Member Functions
test_lowess.test_lowess Class Reference

List of all members.

Public Member Functions

def test_Precomputed

Detailed Description

Definition at line 15 of file test_lowess.py.


Member Function Documentation

Definition at line 17 of file test_lowess.py.

00017 
00018     def test_Precomputed(self):
00019         x = array([0.0, 1.0, 2.0, 3.0, 5.0, 9.0, 11.0])
00020         y = x**2
00021         # Precalculated smooth output
00022         ys = array([-2.96219015, 1.72680044, 6.58686813,
00023                     11.62986671, 28.18598762, 86.85271581, 116.83893423 ])
00024         # Smooth output calculated by the lowess function
00025         output = lowess(x, y, f=2./3., iter = 3)
00026         for precomputed, calculated in zip(ys, output):
00027             self.assertAlmostEqual(precomputed, calculated, places=4)

Here is the call graph for this function:


The documentation for this class was generated from the following file: