Debian Codegraph @

LPC/Cepstrogram.cpp

raw
1 /* Cepstrogram.cpp
2 *
3 * Copyright (C) 2013 - 2020 David Weenink
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /*
20 djmw 20010514
21 djmw 20020812 GPL header
22 djmw 20080122 Version 1: float -> double
23 djmw 20110304 Thing_new
24 */
25
26 #include "Cepstrogram.h"
27 #include "Cepstrum_and_Spectrum.h"
28 #include "NUM2.h"
29 #include "Sound_and_Spectrum.h"
30 #include "Sound_extensions.h"
31
32 Thing_implement (Cepstrogram, Matrix, 2);
33
34 autoCepstrogram Cepstrogram_create (double tmin, double tmax, integer nt, double dt, double t1,
35 double qmin, double qmax, integer nq, double dq, double q1) {
36 try {
37 autoCepstrogram me = Thing_new (Cepstrogram);
38 Matrix_init (me.get(), tmin, tmax, nt, dt, t1, qmin, qmax, nq, dq, q1);
39 return me;
40 } catch (MelderError) {
41 Melder_throw (U"Cepstrogram not created.");
42 }
43 }
44
45 /* End of file Cepstrogram.cpp */