| 1 | #ifndef _FormantModelerList_h_ |
| 2 | #define _FormantModelerList_h_ |
| 3 | /*FormantModelerList.h |
| 4 | * |
| 5 | * Copyright (C) 2020 David Weenink |
| 6 | * |
| 7 | * This code is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or (at |
| 10 | * your option) any later version. |
| 11 | * |
| 12 | * This code is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "Collection.h" |
| 22 | #include "Function.h" |
| 23 | #include "FormantModeler.h" |
| 24 | #include "FormantPath.h" |
| 25 | #include "Graphics.h" |
| 26 | #include "melder.h" |
| 27 | |
| 28 | #include "FormantModelerList_def.h" |
| 29 | |
| 30 | autoFormantModelerList FormantPath_to_FormantModelerList (FormantPath me, double startTime, double endTime, constINTVEC const& numberOfParametersPerTrack); |
| 31 | |
| 32 | /* |
| 33 | Find best model according to Weenink (2015), Improved formant frequency measurements of short segments. |
| 34 | in Proceedings of ICPhSc 2015. |
| 35 | */ |
| 36 | integer FormantModelerList_getBestModelIndex (FormantModelerList me, integer fromTrack, integer toTrack); |
| 37 | |
| 38 | void FormantModelerList_markBest3 (FormantModelerList me); |
| 39 | void FormantModelerList_showBest3 (FormantModelerList me); |
| 40 | autoINTVEC FormantModelerList_getBest3 (FormantModelerList me); |
| 41 | |
| 42 | void FormantModelerList_getMatrixGridLayout (FormantModelerList me, integer *out_numberOfRows, integer *out_numberOfColums); |
| 43 | |
| 44 | void FormantModelerList_drawInMatrixGrid (FormantModelerList me, Graphics g, integer nrow, integer ncol, kGraphicsMatrixOrigin origin, double spaceBetweenFraction_x, double spaceBetweenFraction_y, integer fromFormant, integer toFormant, double fmax, double yGridLineEvery_Hz, double xCursor, double yCursor, integer numberOfParameters, bool drawErrorBars, double barwidth_s, bool drawEstimated, bool garnish); |
| 45 | |
| 46 | /* For special drawings, like in the FormantEditor */ |
| 47 | |
| 48 | autoFormantModelerListDrawingSpecification FormantModelerList_to_FormantModelerListDrawingSpecification (FormantModelerList me, integer special); |
| 49 | |
| 50 | integer FormantModelerListDrawingSpecification_getNumberOfShown (FormantModelerListDrawingSpecification me); |
| 51 | |
| 52 | void FormantModelerListDrawingSpecification_showAll (FormantModelerListDrawingSpecification me); |
| 53 | |
| 54 | void FormantModelerListDrawingSpecification_setModelerColours (FormantModelerListDrawingSpecification me, conststring32 oddFormantColour_string, conststring32 evenFormantColour_string, conststring32 selectedCandidateColour_string); |
| 55 | |
| 56 | #endif /* _FormantModelerList_h_ */ |