autoDiscriminant Pattern_and_Categories_to_Discriminant (Pattern me, Categories thee) {
	try {
		autoTableOfReal t = Matrix_and_Categories_to_TableOfReal (me, thee);
		autoDiscriminant him = TableOfReal_to_Discriminant (t.get());
		return him;
	} catch (MelderError) {
		Melder_throw (U"Discriminant not created from Pattern & Categories.");
	}
}
示例#2
0
autoConfiguration TableOfReal_to_Configuration_lda (TableOfReal me, long numberOfDimensions) {
    try {
        autoDiscriminant thee = TableOfReal_to_Discriminant (me);
        autoConfiguration him = Discriminant_and_TableOfReal_to_Configuration (thee.get(), me, numberOfDimensions);
        return him;
    } catch (MelderError) {
        Melder_throw (me, U": Configuration with lda data not created.");
    }
}