| 1 | #cxx . . $ `<file>/fon/Intensity.h`/ifndef _Intensity_h_ |
| 2 | #define _Intensity_h_cxx . . $ `fon/Intensity.h:2:9`! |
| 3 | /* Intensity.h |
| 4 | * |
| 5 | * Copyright (C) 1992-2005,2007,2011,2015-2017,2019,2022,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 | /* |
| 22 | class Intensity = Vector; |
| 23 | |
| 24 | x == time (seconds) |
| 25 | nx == number of frames |
| 26 | dx == distance between frames (seconds) |
| 27 | x1 == centre of first frame (seconds) |
| 28 | z == intensity (dB relative to 2e-5 N/m2 or 1e-12 W/m2) |
| 29 | */ |
| 30 | |
| 31 | #include "Vector.h"cxx . . $ `<file>/fon/Vector.h`/ |
| 32 | |
| 33 | Thing_definecxx . . $ IntensityHandle# (Intensity, Vector) { |
| 34 | void v1_infocxx . . $ structIntensity#v1_info(49f6e7a06ebc5aa8). () |
| 35 | override; |
| 36 | int v_domainQuantitycxx . . $ structIntensity#v_domainQuantity(455f465bc33b4cdf). () const |
| 37 | override { return MelderQuantity_TIME_SECONDScxx . . $ `melder/melder_quantity.h:22:9`!; } |
| 38 | double v_convertStandardToSpecialUnitcxx . . $ structIntensity#v_convertStandardToSpecialUnit(d783654ce2b2ffd0). (double value, integercxx . . $ integer# level, int unit) const |
| 39 | override; |
| 40 | double v_convertSpecialToStandardUnitcxx . . $ structIntensity#v_convertSpecialToStandardUnit(d783654ce2b2ffd0). (double value, integercxx . . $ integer# level, int unit) const |
| 41 | override; |
| 42 | }; |
| 43 | |
| 44 | autoIntensitycxx . . $ autoIntensity# Intensity_createcxx . . $ Intensity_create(83c615748dcd7df). (double tmin, double tmax, integercxx . . $ integer# nt, double dt, double t1); |
| 45 | |
| 46 | void Intensity_initcxx . . $ Intensity_init(44d7851fe1c9bd81). (Intensitycxx . . $ Intensity# me, double tmin, double tmax, integercxx . . $ integer# nt, double dt, double t1); |
| 47 | |
| 48 | autoMatrixcxx . . $ autoMatrix# Intensity_to_Matrixcxx . . $ Intensity_to_Matrix(810854a3d14bc6da). (Intensitycxx . . $ Intensity# me); |
| 49 | |
| 50 | autoIntensitycxx . . $ autoIntensity# Matrix_to_Intensitycxx . . $ Matrix_to_Intensity(d8a0db3933b62e36). (Matrixcxx . . $ Matrix# me); |
| 51 | |
| 52 | void Intensity_drawInsidecxx . . $ Intensity_drawInside(dfe36347cdb6bfdc). (Intensitycxx . . $ Intensity# me, Graphicscxx . . $ Graphics# g, double tmin, double tmax, |
| 53 | double minimum, double maximum); |
| 54 | |
| 55 | void Intensity_drawcxx . . $ Intensity_draw(b9a586402ddce4a). (Intensitycxx . . $ Intensity# me, Graphicscxx . . $ Graphics# g, double tmin, double tmax, |
| 56 | double minimum, double maximum, bool garnish); |
| 57 | |
| 58 | double Intensity_getQuantilecxx . . $ Intensity_getQuantile(86232bf584732d8f). (Intensitycxx . . $ Intensity# me, double tmin, double tmax, double quantile); |
| 59 | |
| 60 | #define Intensity_units_ENERGYcxx . . $ `fon/Intensity.h:60:9`! 1 |
| 61 | #define Intensity_units_SONEScxx . . $ `fon/Intensity.h:61:9`! 2 |
| 62 | #define Intensity_units_DBcxx . . $ `fon/Intensity.h:62:9`! 3 |
| 63 | |
| 64 | #define Intensity_averaging_MEDIANcxx . . $ `fon/Intensity.h:64:9`! 0 |
| 65 | #define Intensity_averaging_ENERGYcxx . . $ `fon/Intensity.h:65:9`! 1 |
| 66 | #define Intensity_averaging_SONEScxx . . $ `fon/Intensity.h:66:9`! 2 |
| 67 | #define Intensity_averaging_DBcxx . . $ `fon/Intensity.h:67:9`! 3 |
| 68 | double Intensity_getAveragecxx . . $ Intensity_getAverage(4a204f48cb78364e). (Intensitycxx . . $ Intensity# me, double tmin, double tmax, int averagingMethod); |
| 69 | |
| 70 | /* End of file Intensity.h */ |
| 71 | #endif |