Debian Codegraph @

dwtest/test_Correlation.praat

raw
1 # test_Correlation.praat
2 # djmw 20110518, 20260511
3
4 printline test_Correlation
5
6 t = Create TableOfReal (Pols 1973)... no
7 Formula... log10(self)
8 cor = To Correlation
9
10 # table 3.1 Weenink (2006)
11 c21ref$ = "-0.302"
12 c31ref$ = "0.195"
13 c32ref$ = "0.120"
14
15 c21 = Get value... 2 1
16 c31 = Get value... 3 1
17 c32 = Get value... 3 2
18
19 assert fixed$(c21,3) = c21ref$
20 assert fixed$(c31,3) = c31ref$
21 assert fixed$(c32,3) = c32ref$
22
23 asserterror Correlation_testDiagonality_bartlett: number of constraints should be in the interval [1, 600].
24 p = Get diagonality (bartlett): 1000
25
26 plus t
27 Remove
28
29 printline test_Correlation OK
30
31
32