示例#1
0
 def test_negative(self):
     X = np.array([[1, 2], [-0.1, -2]])
     with npt.assert_raises(ValueError):
         CA(X, None, None)
示例#2
0
 def setup(self):
     """Data from table 9.11 in Legendre & Legendre 1998."""
     self.X = np.loadtxt(get_data_path('L&L_CA_data'))
     self.ordination = CA(self.X, ['Site1', 'Site2', 'Site3'],
                          ['Species1', 'Species2', 'Species3'])