| 1 | #cxx . . $ `<file>/fon/Vector.h`/ifndef _Vector_h_ |
| 2 | #define _Vector_h_cxx . . $ `fon/Vector.h:2:9`! |
| 3 | /* Vector.h |
| 4 | * |
| 5 | * Copyright (C) 1992-2005,2007,2011,2012,2015-2018,2020,2023,2024 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 | /* Vector inherits from Matrix */ |
| 22 | /* A Vector is a horizontal Matrix. */ |
| 23 | /* The rows are 'channels'. There will often be only one channel, but e.g. a stereo sound has two. */ |
| 24 | #include "Matrix.h"cxx . . $ `<file>/fon/Matrix.h`/ |
| 25 | |
| 26 | Thing_definecxx . . $ ClassInfo# (Vector, Matrix) { |
| 27 | bool v_hasGetVectorcxx . . $ structVector#v_hasGetVector(50ce9a9e25b4a850). () const |
| 28 | override { return true; } |
| 29 | double v_getVectorcxx . . $ structVector#v_getVector(f7a1f362ba849873). (integercxx . . $ integer# irow, integercxx . . $ integer# icol) const |
| 30 | override; |
| 31 | bool v_hasGetFunction1cxx . . $ structVector#v_hasGetFunction1(50ce9a9e25b4a850). () const |
| 32 | override { return true; } |
| 33 | double v_getFunction1cxx . . $ structVector#v_getFunction1(6525b878db7c2448). (integercxx . . $ integer# irow, double x) const |
| 34 | override; |
| 35 | bool v_hasGetMatrixcxx . . $ structVector#v_hasGetMatrix(50ce9a9e25b4a850). () const |
| 36 | override { return false; } |
| 37 | bool v_hasGetFunction2cxx . . $ structVector#v_hasGetFunction2(50ce9a9e25b4a850). () const |
| 38 | override { return false; } |
| 39 | double v_getValueAtSamplecxx . . $ structVector#v_getValueAtSample(8bbfc6ce471470c9). (integercxx . . $ integer# isamp, integercxx . . $ integer# ilevel, int unit) const |
| 40 | override; |
| 41 | |
| 42 | VECcxx . . $ VEC# channelcxx . . $ structVector#channel(516a12db1224da40). (integercxx . . $ integer# channelNumber) { return zcxx . . $ structMatrix#z..rowcxx . . $ automatrix#row(2d545b3cb3f8e666). (channelNumber); } |
| 43 | }; |
| 44 | |
| 45 | #include "Vector_enums.h"cxx . . $ `<file>/fon/Vector_enums.h`/ |
| 46 | integercxx . . $ integer# kVector_valueInterpolation_to_interpolationDepthcxx . . $ kVector_valueInterpolation_to_interpolationDepth(42b64d17316aa70a). (kVector_valueInterpolationcxx . . $ kVector_valueInterpolation# valueInterpolationType); |
| 47 | integercxx . . $ integer# kVector_peakInterpolation_to_interpolationDepthcxx . . $ kVector_peakInterpolation_to_interpolationDepth(5f6fa5b1fce060b0). (kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType); |
| 48 | |
| 49 | #define Vector_CHANNEL_AVERAGEcxx . . $ `fon/Vector.h:49:9`! 0 |
| 50 | #define Vector_CHANNEL_1cxx . . $ `fon/Vector.h:50:9`! 1 |
| 51 | #define Vector_CHANNEL_2cxx . . $ `fon/Vector.h:51:9`! 2 |
| 52 | double Vector_getValueAtXcxx . . $ Vector_getValueAtX(1bfdbe9f8adea74f). (constVectorcxx . . $ constVector# me, double x, integercxx . . $ integer# channel, kVector_valueInterpolationcxx . . $ kVector_valueInterpolation# valueInterpolationType); |
| 53 | |
| 54 | void Vector_getMinimumAndXcxx . . $ Vector_getMinimumAndX(5da84364dcb96b40). (constVectorcxx . . $ constVector# me, double xmin, double xmax, integercxx . . $ integer# channel, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType, |
| 55 | double *return_minimum, double *return_xOfMinimum); |
| 56 | void Vector_getMinimumAndXAndChannelcxx . . $ Vector_getMinimumAndXAndChannel(d40985585eba717). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType, |
| 57 | double *return_minimum, double *return_xOfMinimum, integercxx . . $ integer# *return_channelOfMinimum); |
| 58 | void Vector_getMaximumAndXcxx . . $ Vector_getMaximumAndX(5da84364dcb96b40). (constVectorcxx . . $ constVector# me, double xmin, double xmax, integercxx . . $ integer# channel, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType, |
| 59 | double *return_maximum, double *return_xOfMaximum); |
| 60 | void Vector_getMaximumAndXAndChannelcxx . . $ Vector_getMaximumAndXAndChannel(d40985585eba717). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType, |
| 61 | double *return_maximum, double *return_xOfMaximum, integercxx . . $ integer# *return_channelOfMaximum); |
| 62 | double Vector_getMinimumcxx . . $ Vector_getMinimum(9e5d98b21939784c). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType); |
| 63 | double Vector_getMaximumcxx . . $ Vector_getMaximum(9e5d98b21939784c). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType); |
| 64 | double Vector_getAbsoluteExtremumcxx . . $ Vector_getAbsoluteExtremum(9e5d98b21939784c). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType); |
| 65 | double Vector_getXOfMinimumcxx . . $ Vector_getXOfMinimum(9e5d98b21939784c). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType); |
| 66 | double Vector_getXOfMaximumcxx . . $ Vector_getXOfMaximum(9e5d98b21939784c). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType); |
| 67 | integercxx . . $ integer# Vector_getChannelOfMinimumcxx . . $ Vector_getChannelOfMinimum(4252c3d829fb2dbf). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType); |
| 68 | integercxx . . $ integer# Vector_getChannelOfMaximumcxx . . $ Vector_getChannelOfMaximum(4252c3d829fb2dbf). (constVectorcxx . . $ constVector# me, double xmin, double xmax, kVector_peakInterpolationcxx . . $ kVector_peakInterpolation# peakInterpolationType); |
| 69 | |
| 70 | double Vector_getMeancxx . . $ Vector_getMean(8ea9441cb87dc78e). (constVectorcxx . . $ constVector# me, double xmin, double xmax, integercxx . . $ integer# channel); |
| 71 | double Vector_getStandardDeviationcxx . . $ Vector_getStandardDeviation(8ea9441cb87dc78e). (constVectorcxx . . $ constVector# me, double xmin, double xmax, integercxx . . $ integer# channel); |
| 72 | |
| 73 | void Vector_addScalarcxx . . $ Vector_addScalar(54f31cdb89d1acde). (mutableVectorcxx . . $ mutableVector# me, double scalar); |
| 74 | void Vector_subtractMeancxx . . $ Vector_subtractMean(8ab8c8e01f03cabf). (mutableVectorcxx . . $ mutableVector# me); |
| 75 | void Vector_multiplyByScalarcxx . . $ Vector_multiplyByScalar(54f31cdb89d1acde). (mutableVectorcxx . . $ mutableVector# me, double scalar); |
| 76 | void Vector_scalecxx . . $ Vector_scale(54f31cdb89d1acde). (mutableVectorcxx . . $ mutableVector# me, double scale); |
| 77 | |
| 78 | void Vector_drawcxx . . $ Vector_draw(ac83553bcb211d2d). (constVectorcxx . . $ constVector# me, Graphicscxx . . $ Graphics# g, double *pxmin, double *pxmax, double *pymin, double *pymax, |
| 79 | double defaultDy, conststring32cxx . . $ conststring32# method); |
| 80 | /* |
| 81 | If *pxmin equals *pxmax, then autowindowing from my xmin to my xmax. |
| 82 | If *pymin equals *pymax, then autoscaling from minimum to maximum; |
| 83 | if minimum then equals maximum, defaultDy will be subtracted from *pymin and added to *pymax; |
| 84 | it must be a positive real number (e.g. 0.5 Pa for Sound, 1.0 dB for Ltas). |
| 85 | method can be "curve", "bars", "poles", or "speckles"; it must not be null; |
| 86 | if anything else is specified, a curve is drawn. |
| 87 | */ |
| 88 | |
| 89 | /* End of file Vector.h */ |
| 90 | #endif |