Debian Codegraph @

stat/TableOfReal.h

raw
1 #ifndef _TableOfReal_h_
2 #define _TableOfReal_h_
3 /* TableOfReal.h
4 *
5 * Copyright (C) 1992-2005,2007,2009,2011,2012,2015-2018,2021,2023 Paul Boersma
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.
15 * See the GNU 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 /* TableOfReal inherits from Data */
22 #include "Collection.h"
23 #include "Strings_.h"
24 #include "Table.h"
25 Thing_declare (Interpreter);
26
27 #include "TableOfReal_def.h"
28
29 void TableOfReal_init (TableOfReal me, integer numberOfRows, integer numberOfColumns);
30 autoTableOfReal TableOfReal_create (integer numberOfRows, integer numberOfColumns);
31
32 void TableOfReal_checkRowNumberWithinRange (TableOfReal me, integer rowNumber);
33 void TableOfReal_checkColumnNumberWithinRange (TableOfReal me, integer columnNumber);
34
35 void TableOfReal_removeRow (TableOfReal me, integer rowNumber);
36 void TableOfReal_removeColumn (TableOfReal me, integer columnNumber);
37 void TableOfReal_insertRow (TableOfReal me, integer rowNumber);
38 void TableOfReal_insertColumn (TableOfReal me, integer columnNumber);
39 void TableOfReal_setRowLabel (TableOfReal me, integer rowNumber, conststring32 label /* cattable */);
40 void TableOfReal_setColumnLabel (TableOfReal me, integer columnNumber, conststring32 label /* cattable */);
41 integer TableOfReal_rowLabelToIndex (constTableOfReal me, conststring32 label /* cattable */);
42 integer TableOfReal_columnLabelToIndex (constTableOfReal me, conststring32 label /* cattable */);
43 double TableOfReal_getColumnMean (TableOfReal me, integer columnNumber);
44 double TableOfReal_getColumnStdev (TableOfReal me, integer columnNumber);
45
46 autoTableOfReal Table_to_TableOfReal (Table me, integer labelColumn);
47 autoTable TableOfReal_to_Table (TableOfReal me, conststring32 labelOfFirstColumn);
48 void TableOfReal_formula (TableOfReal me, conststring32 expression, Interpreter interpreter, TableOfReal target);
49 void TableOfReal_drawAsNumbers (TableOfReal me, Graphics g, integer rowmin, integer rowmax, int iformat, int precision);
50 void TableOfReal_drawAsNumbers_if (TableOfReal me, Graphics g, integer rowmin, integer rowmax, int iformat, int precision,
51 conststring32 conditionFormula, Interpreter interpreter);
52 void TableOfReal_drawAsSquares (TableOfReal me, Graphics g, integer rowmin, integer rowmax,
53 integer colmin, integer colmax, bool garnish);
54 void TableOfReal_drawVerticalLines (TableOfReal me, Graphics g, integer rowmin, integer rowmax);
55 void TableOfReal_drawHorizontalLines (TableOfReal me, Graphics g, integer rowmin, integer rowmax);
56 void TableOfReal_drawLeftAndRightLines (TableOfReal me, Graphics g, integer rowmin, integer rowmax);
57 void TableOfReal_drawTopAndBottomLines (TableOfReal me, Graphics g, integer rowmin, integer rowmax);
58
59 autoTableOfReal TablesOfReal_append (TableOfReal me, TableOfReal thee);
60 autoTableOfReal TablesOfReal_appendMany (OrderedOf<structTableOfReal>* me);
61 void TableOfReal_sortByLabel (TableOfReal me, integer column1, integer column2);
62 void TableOfReal_sortByColumn (TableOfReal me, integer column1, integer column2);
63
64 void TableOfReal_writeToHeaderlessSpreadsheetFile (TableOfReal me, MelderFile file);
65 autoTableOfReal TableOfReal_readFromHeaderlessSpreadsheetFile (MelderFile file);
66
67 autoTableOfReal TableOfReal_extractRowsByNumber (TableOfReal me, constINTVECVU const& rowNumbers);
68 autoTableOfReal TableOfReal_extractColumnsByNumber (TableOfReal me, constINTVECVU const& columnNumbers);
69
70 autoTableOfReal TableOfReal_extractRowsWhereColumn (TableOfReal me, integer icol, kMelder_number which, double criterion);
71 autoTableOfReal TableOfReal_extractColumnsWhereRow (TableOfReal me, integer icol, kMelder_number which, double criterion);
72
73 autoTableOfReal TableOfReal_extractRowsWhoseLabel (TableOfReal me, kMelder_string which, conststring32 criterion);
74 autoTableOfReal TableOfReal_extractColumnsWhoseLabel (TableOfReal me, kMelder_string which, conststring32 criterion);
75
76 autoTableOfReal TableOfReal_extractRowsWhere (TableOfReal me, conststring32 condition, Interpreter interpreter);
77 autoTableOfReal TableOfReal_extractColumnsWhere (TableOfReal me, conststring32 condition, Interpreter interpreter);
78
79 autoStrings TableOfReal_extractRowLabelsAsStrings (TableOfReal me);
80 autoStrings TableOfReal_extractColumnLabelsAsStrings (TableOfReal me);
81
82 #pragma mark - class TableOfRealList
83
84 Collection_define (TableOfRealList, OrderedOf, TableOfReal) {
85 };
86
87 /* End of file TableOfReal.h */
88 #endif