test_henzeZirklerMultivariateNormalityTest.praat 931 B

123456789101112131415161718192021222324252627282930
  1. # henzeZirklerMultivariateNormalityTest.praat
  2. # djmw 20090707,20110526
  3. printline test_henzeZirklerMultivariateNormalityTest
  4. ir = Create iris data set
  5. ir50 = Extract row ranges... 1:50
  6. report$ = Report multivariate normality... 0
  7. tol = 1e-10
  8. stat = extractNumber (report$, "statistic:")
  9. assert abs(stat - 0.9583666347568522)<tol
  10. prob = extractNumber (report$, " normality:")
  11. assert abs (prob - 0.042925190989665477) < tol
  12. lmean = extractNumber (report$, " mean:")
  13. assert abs (lmean + 0.27940830765481794)<tol
  14. lvariance = extractNumber (report$, " variance:")
  15. assert abs (lvariance - 0.13790691675095398)<tol
  16. beta = extractNumber (report$, "Smoothing:")
  17. printline 'beta'
  18. assert abs (beta -0.5541226910830553)<tol
  19. sampleSize = extractNumber (report$, " size:")
  20. assert sampleSize = 50
  21. nvars = extractNumber (report$, " variables:")
  22. assert nvars = 4
  23. select ir
  24. plus ir50
  25. Remove
  26. printline henzeZirklerMultivariateNormalityTest : end