| 1 | #ifndef _PointProcess_h_ |
| 2 | #define _PointProcess_h_ |
| 3 | /* PointProcess.h |
| 4 | * |
| 5 | * Copyright (C) 1992-2005,2007,2011,2015-2020 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 | #include "Function.h" |
| 22 | #include "Graphics.h" |
| 23 | |
| 24 | #include "PointProcess_def.h" |
| 25 | |
| 26 | autoPointProcess PointProcess_create (double startingTime, double finishingTime, integer initialMaxnt); |
| 27 | autoPointProcess PointProcess_createPoissonProcess (double startingTime, double finishingTime, double density); |
| 28 | void PointProcess_init (PointProcess me, double startingTime, double finishingTime, integer initialMaxnt); |
| 29 | integer PointProcess_getLowIndex (PointProcess me, double t); |
| 30 | integer PointProcess_getHighIndex (PointProcess me, double t); |
| 31 | integer PointProcess_getNearestIndex (PointProcess me, double t); |
| 32 | MelderIntegerRange PointProcess_getWindowPoints (PointProcess me, double tmin, double tmax); |
| 33 | void PointProcess_addPoint (PointProcess me, double t); |
| 34 | void PointProcess_addPoints (PointProcess me, constVECVU const& times); |
| 35 | integer PointProcess_findPoint (PointProcess me, double t); |
| 36 | void PointProcess_removePoint (PointProcess me, integer index); |
| 37 | void PointProcess_removePointNear (PointProcess me, double t); |
| 38 | void PointProcess_removePoints (PointProcess me, integer first, integer last); |
| 39 | void PointProcess_removePointsBetween (PointProcess me, double fromTime, double toTime); |
| 40 | void PointProcess_draw (PointProcess me, Graphics g, double fromTime, double toTime, bool garnish); |
| 41 | double PointProcess_getInterval (PointProcess me, double t); |
| 42 | autoPointProcess PointProcesses_union (PointProcess me, PointProcess thee); |
| 43 | autoPointProcess PointProcesses_intersection (PointProcess me, PointProcess thee); |
| 44 | autoPointProcess PointProcesses_difference (PointProcess me, PointProcess thee); |
| 45 | void PointProcess_fill (PointProcess me, double tmin, double tmax, double period); |
| 46 | void PointProcess_voice (PointProcess me, double period, double maxT); |
| 47 | |
| 48 | integer PointProcess_getNumberOfPeriods (PointProcess me, double tmin, double tmax, |
| 49 | double minimumPeriod, double maximumPeriod, double maximumPeriodFactor); |
| 50 | double PointProcess_getMeanPeriod (PointProcess me, double tmin, double tmax, |
| 51 | double minimumPeriod, double maximumPeriod, double maximumPeriodFactor); |
| 52 | double PointProcess_getStdevPeriod (PointProcess me, double tmin, double tmax, |
| 53 | double minimumPeriod, double maximumPeriod, double maximumPeriodFactor); |
| 54 | MelderCountAndFraction PointProcess_getCountAndFractionOfVoiceBreaks (PointProcess me, double tmin, double tmax, |
| 55 | double maximumPeriod); |
| 56 | |
| 57 | /* End of file PointProcess.h */ |
| 58 | #endif |