test_Correlation.praat 451 B

123456789101112131415161718192021222324252627282930
  1. # test_Correlation.praat
  2. # djmw 20110518
  3. printline test_Correlation
  4. t = Create TableOfReal (Pols 1973)... no
  5. Formula... log10(self)
  6. cor = To Correlation
  7. # table 3.1 Weenink (2006)
  8. c21ref$ = "-0.302"
  9. c31ref$ = "0.195"
  10. c32ref$ = "0.120"
  11. c21 = Get value... 2 1
  12. c31 = Get value... 3 1
  13. c32 = Get value... 3 2
  14. assert fixed$(c21,3) = c21ref$
  15. assert fixed$(c31,3) = c31ref$
  16. assert fixed$(c32,3) = c32ref$
  17. plus t
  18. Remove
  19. printline test_Correlation OK