Changeset 4afa448e
- Timestamp:
- Jul 11, 2012, 10:41:04 PM (12 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 299c2b0
- Parents:
- 012b324
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/test_fvec.py
r012b324 r4afa448e 86 86 def test_zero_crossing_rate(self): 87 87 a = array([0,1,-1], dtype='float32') 88 self.assertEquals (zero_crossing_rate(a), 1./3)88 assert_almost_equal (zero_crossing_rate(a), 1./3. ) 89 89 a = array([0.]*100, dtype='float32') 90 90 self.assertEquals (zero_crossing_rate(a), 0 )
Note: See TracChangeset
for help on using the changeset viewer.