Debian Codegraph @

dwtools/LFCC.cpp

raw
1 /* LFCC.cpp
2 *
3 * Linear Frequency Cepstral Coefficients class.
4 *
5 * Copyright (C) 1993-2017 David Weenink
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. See the GNU
15 * 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 djmw 20001228
23 djmw 20020813 GPL header
24 djmw 20110304 Thing_new
25 */
26
27 #include "LFCC.h"
28
29 Thing_implement (LFCC, CC, 1);
30
31 autoLFCC LFCC_create (double tmin, double tmax, integer nt, double dt, double t1, integer maximumNumberOfCoefficients, double fmin, double fmax) {
32 try {
33 autoLFCC me = Thing_new (LFCC);
34 CC_init (me.get(), tmin, tmax, nt, dt, t1, maximumNumberOfCoefficients, fmin, fmax);
35 return me;
36 } catch (MelderError) {
37 Melder_throw (U"LFCC not created.");
38 }
39 }
40
41 /* End of file LFCC.cpp */