Changeset 44312de for python/tests
- Timestamp:
- May 11, 2016, 11:00:22 AM (9 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:
- cd2791f
- Parents:
- 88554b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_fvec.py
r88554b9 r44312de 98 98 alpha = np.random.rand() * 5. 99 99 x_alpha_norm = (np.sum(np.abs(x)**alpha)/len(x))**(1/alpha) 100 assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm )100 assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm, decimal = 5) 101 101 102 102 class aubio_zero_crossing_rate_test(TestCase):
Note: See TracChangeset
for help on using the changeset viewer.