| 1 | #cxx . . $ `<file>/melder/NUMinterpol.h`/ifndef _NUMinterpol_h_ |
| 2 | #define _NUMinterpol_h_cxx . . $ `melder/NUMinterpol.h:2:9`! |
| 3 | /* NUMinterpol.h |
| 4 | * |
| 5 | * Copyright (C) 1992-2018 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 | /********** Interpolation and optimization **********/ |
| 22 | |
| 23 | // Special values for interpolationDepth: |
| 24 | #define NUM_VALUE_INTERPOLATE_NEARESTcxx . . $ `melder/NUMinterpol.h:24:9`! 0 |
| 25 | #define NUM_VALUE_INTERPOLATE_LINEARcxx . . $ `melder/NUMinterpol.h:25:9`! 1 |
| 26 | #define NUM_VALUE_INTERPOLATE_CUBICcxx . . $ `melder/NUMinterpol.h:26:9`! 2 |
| 27 | // Higher values than 2 yield a true sinc interpolation. Here are some examples: |
| 28 | #define NUM_VALUE_INTERPOLATE_SINC70cxx . . $ `melder/NUMinterpol.h:28:9`! 70 |
| 29 | #define NUM_VALUE_INTERPOLATE_SINC700cxx . . $ `melder/NUMinterpol.h:29:9`! 700 |
| 30 | double NUM_interpolate_sinccxx . . $ NUM_interpolate_sinc(3bff97c7d2c43d6f). (constVECcxx . . $ constVEC# const& y, double x, integercxx . . $ integer# interpolationDepth); |
| 31 | |
| 32 | #define NUM_PEAK_INTERPOLATE_NONEcxx . . $ `melder/NUMinterpol.h:32:9`! 0 |
| 33 | #define NUM_PEAK_INTERPOLATE_PARABOLICcxx . . $ `melder/NUMinterpol.h:33:9`! 1 |
| 34 | #define NUM_PEAK_INTERPOLATE_CUBICcxx . . $ `melder/NUMinterpol.h:34:9`! 2 |
| 35 | #define NUM_PEAK_INTERPOLATE_SINC70cxx . . $ `melder/NUMinterpol.h:35:9`! 3 |
| 36 | #define NUM_PEAK_INTERPOLATE_SINC700cxx . . $ `melder/NUMinterpol.h:36:9`! 4 |
| 37 | |
| 38 | double NUMimproveExtremumcxx . . $ NUMimproveExtremum(b8820d1df15d30e8). (constVECcxx . . $ constVEC# const& y, integercxx . . $ integer# ixmid, integercxx . . $ integer# interpolationDepth, double *ixmid_real, bool isMaximum); |
| 39 | double NUMimproveMaximumcxx . . $ NUMimproveMaximum(c86a71e1ecac36cd). (constVECcxx . . $ constVEC# const& y, integercxx . . $ integer# ixmid, integercxx . . $ integer# interpolationDepth, double *ixmid_real); |
| 40 | double NUMimproveMinimumcxx . . $ NUMimproveMinimum(c86a71e1ecac36cd). (constVECcxx . . $ constVEC# const& y, integercxx . . $ integer# ixmid, integercxx . . $ integer# interpolationDepth, double *ixmid_real); |
| 41 | |
| 42 | void NUM_viterbicxx . . $ NUM_viterbi(d75934b11c111a17). ( |
| 43 | integercxx . . $ integer# numberOfFrames, integercxx . . $ integer# maxnCandidates, |
| 44 | integercxx . . $ integer# (*getNumberOfCandidates) (integercxx . . $ integer# iframe, void *closure), |
| 45 | double (*getLocalCost) (integercxx . . $ integer# iframe, integercxx . . $ integer# icand, void *closure), |
| 46 | double (*getTransitionCost) (integercxx . . $ integer# iframe, integercxx . . $ integer# icand1, integercxx . . $ integer# icand2, void *closure), |
| 47 | void (*putResult) (integercxx . . $ integer# iframe, integercxx . . $ integer# place, void *closure), |
| 48 | void *closure); |
| 49 | |
| 50 | void NUM_viterbi_multicxx . . $ NUM_viterbi_multi(23bde724377b0527). ( |
| 51 | integercxx . . $ integer# nframe, integercxx . . $ integer# ncand, integercxx . . $ integer# ntrack, |
| 52 | double (*getLocalCost) (integercxx . . $ integer# iframe, integercxx . . $ integer# icand, integercxx . . $ integer# itrack, void *closure), |
| 53 | double (*getTransitionCost) (integercxx . . $ integer# iframe, integercxx . . $ integer# icand1, integercxx . . $ integer# icand2, integercxx . . $ integer# itrack, void *closure), |
| 54 | void (*putResult) (integercxx . . $ integer# iframe, integercxx . . $ integer# place, integercxx . . $ integer# itrack, void *closure), |
| 55 | void *closure); |
| 56 | |
| 57 | /* End of file NUMinterpol.h */ |
| 58 | #endif |