| 1 |
# Discriminant3.praat |
| 2 |
# Paul Boersma 2020-05-14 |
| 3 |
|
| 4 |
writeInfoLine: "Discriminant3" |
| 5 |
|
| 6 |
Debug: 0, 52 |
| 7 |
|
| 8 |
table = Create TableOfReal (Pols 1973): "no" |
| 9 |
Save as text file: "kanweg.Table" |
| 10 |
Formula: "log10(self)" |
| 11 |
computedDiscriminant = To Discriminant |
| 12 |
Save as text file: "kanweg.Discriminant" |
| 13 |
plusObject: table |
| 14 |
classificationTable = To ClassificationTable: "yes", "yes" |
| 15 |
Save as text file: "kanweg.ClassificationTable" |
| 16 |
confusion = To Confusion: "no" |
| 17 |
Save as text file: "kanweg.Confusion" |
| 18 |
fractionCorrect = Get fraction correct |
| 19 |
appendInfoLine: "Computed correct: ", fractionCorrect |
| 20 |
removeObject: classificationTable, confusion, computedDiscriminant, table |
| 21 |
|
| 22 |
Debug: 0, 0 |
| 23 |
|
| 24 |
appendInfoLine: "Discriminant3 OK" |