| 1 |
# test_Table_getMedianAbsoluteDeviation.praat |
| 2 |
# djmw 20120405 |
| 3 |
|
| 4 |
# create dataset with median 2 |
| 5 |
tab = Create Table with column names... table 7 c1 |
| 6 |
Set numeric value... 1 c1 1 |
| 7 |
Set numeric value... 2 c1 1 |
| 8 |
Set numeric value... 3 c1 2 |
| 9 |
Set numeric value... 4 c1 2 |
| 10 |
Set numeric value... 5 c1 4 |
| 11 |
Set numeric value... 6 c1 6 |
| 12 |
Set numeric value... 7 c1 9 |
| 13 |
|
| 14 |
mad = Get median absolute deviation... c1 |
| 15 |
assert abs (mad -1.4826) < 1.1e-16 |
| 16 |
Remove |
| 17 |
|
| 18 |
printline test_Table_getMedianAbsoluteDeviation ok |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|