Permutation TableOfReal_to_Permutation_sortRowLabels (I) { iam (TableOfReal); try { autoPermutation thee = Permutation_create (my numberOfRows); NUMindexx_s (my rowLabels, my numberOfRows, thy p); return thee.transfer(); } catch (MelderError) { Melder_throw (me, ": no Permutation created."); } }
autoPermutation Strings_to_Permutation (Strings me, int sort) { try { autoPermutation thee = Permutation_create (my numberOfStrings); if (sort != 0) { NUMindexx_s (my strings, my numberOfStrings, thy p); } return thee; } catch (MelderError) { Melder_throw (me, U": no Permutation created."); } }