Debian Codegraph @

fon/RealTier.h

raw
1 #ifndef _RealTier_h_
2 #define _RealTier_h_
3 /* RealTier.h
4 *
5 * Copyright (C) 1992-2005,2007-2012,2015-2018,2020,2021,2023,2026 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 3 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 #include "AnyTier.h"
22 #include "Graphics.h"
23 #include "TableOfReal.h"
24 #include "Vector.h"
25 Thing_declare (Interpreter);
26
27 /********** class RealPoint **********/
28
29 #include "RealTier_def.h"
30
31 autoRealPoint RealPoint_create (double time, double value);
32 /*
33 Postconditions:
34 result -> time == time;
35 result -> value == value;
36 */
37
38 /********** class RealTier **********/
39
40 void RealTier_init (RealTier me, double tmin, double tmax);
41 autoRealTier RealTier_create (double tmin, double tmax);
42 autoRealTier RealTier_createWithClass (double tmin, double tmax, ClassInfo klas);
43 /*
44 Postconditions:
45 result -> xmin == tmin;
46 result -> xmax == tmax;
47 result -> points.size == 0;
48 */
49
50 double RealTier_getValueAtIndex (constRealTier me, integer point);
51 /* No points or 'point' out of range: undefined. */
52
53 double RealTier_getValueAtTime (constRealTier me, double t);
54 /* Inside points: linear intrapolation. */
55 /* Outside points: constant extrapolation. */
56 /* No points: undefined. */
57
58 double RealTier_getMinimumValue (constRealTier me);
59 double RealTier_getMaximumValue (constRealTier me);
60 double RealTier_getArea (constRealTier me, double tmin, double tmax);
61 double RealTier_getMean_curve_u (constRealTier me, double tmin, double tmax);
62 double RealTier_getMean_points_u (constRealTier me, double tmin, double tmax);
63 double RealTier_getStandardDeviation_curve_u (constRealTier me, double tmin, double tmax);
64 double RealTier_getStandardDeviation_points_u (constRealTier me, double tmin, double tmax);
65
66 void RealTier_addPoint (RealTier me, double t, double value);
67 void RealTier_draw (constRealTier me, Graphics g, double tmin, double tmax,
68 double ymin, double ymax, bool garnish, conststring32 method, conststring32 quantity);
69 autoTableOfReal RealTier_downto_TableOfReal (constRealTier me, conststring32 timeLabel, conststring32 valueLabel);
70
71 void RealTier_interpolateQuadratically (RealTier me, integer numberOfPointsPerParabola, bool logarithmically);
72
73 autoTable RealTier_downto_Table (RealTier me, conststring32 indexText, conststring32 timeText, conststring32 valueText);
74 autoRealTier Vector_to_RealTier (Vector me, integer channel, ClassInfo klas);
75 autoRealTier Vector_to_RealTier_peaks (Vector me, integer channel, ClassInfo klas);
76 autoRealTier Vector_to_RealTier_valleys (Vector me, integer channel, ClassInfo klas);
77 autoRealTier PointProcess_upto_RealTier (PointProcess me, double value, ClassInfo klas);
78
79 void RealTier_formula (RealTier me, conststring32 expression, Interpreter interpreter, RealTier thee);
80 void RealTier_multiplyPart (RealTier me, double tmin, double tmax, double factor);
81 void RealTier_removePointsBelow (RealTier me, double level);
82
83 void RealTier_PointProcess_into_RealTier (RealTier me, PointProcess pp, RealTier thee);
84 autoRealTier RealTier_PointProcess_to_RealTier (RealTier me, PointProcess pp);
85 autoRealTier AnyRealTier_downto_RealTier (RealTier me);
86
87 autoRealTier Table_to_RealTier (Table me, integer timeColumn, integer valueColumn, double tmin, double tmax);
88 autoRealTier Matrix_to_RealTier (Matrix me, integer timeColumn, integer valueColumn, double tmin, double tmax);
89
90 /* End of file RealTier.h */
91 #endif