test_Table_getMedianAbsoluteDeviation.praat 490 B

123456789101112131415161718192021222324252627282930
  1. # test_Table_getMedianAbsoluteDeviation.praat
  2. # djmw 20120405
  3. # create dataset with median 2
  4. tab = Create Table with column names... table 7 c1
  5. Set numeric value... 1 c1 1
  6. Set numeric value... 2 c1 1
  7. Set numeric value... 3 c1 2
  8. Set numeric value... 4 c1 2
  9. Set numeric value... 5 c1 4
  10. Set numeric value... 6 c1 6
  11. Set numeric value... 7 c1 9
  12. mad = Get median absolute deviation... c1
  13. assert abs (mad -1.4826) < 1.1e-16
  14. Remove
  15. printline test_Table_getMedianAbsoluteDeviation ok