1 /* ====================================================================
2 * Copyright (c) 2006 Carnegie Mellon University. All rights
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in
14 * the documentation and/or other materials provided with the
17 * This work was supported in part by funding from the Defense Advanced
18 * Research Projects Agency and the National Science Foundation of the
19 * United States of America, and the CMU Sphinx Speech Consortium.
21 * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
22 * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
25 * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 * ====================================================================
37 #ifndef FE_WARP_inverse_linear_H
38 #define FE_WARP_inverse_linear_H
40 #include "sphinxbase/fe.h"
52 fe_warp_inverse_linear_doc(void);
55 fe_warp_inverse_linear_id(void);
58 fe_warp_inverse_linear_n_param(void);
61 fe_warp_inverse_linear_set_parameters(char const *param_str, float sampling_rate);
64 fe_warp_inverse_linear_warped_to_unwarped(float nonlinear);
67 fe_warp_inverse_linear_unwarped_to_warped(float linear);
70 fe_warp_inverse_linear_print(const char *label);
77 #endif /* FE_WARP_inverse_linear_H */
81 * Log record. Maintained by RCS.
83 * $Log: fe_warp_inverse_linear.h,v $
84 * Revision 1.1 2006/02/16 00:18:26 egouvea
85 * Implemented flexible warping function. The user can specify at run
86 * time which of several shapes they want to use. Currently implemented
87 * are an affine function (y = ax + b), an inverse linear (y = a/x) and a
88 * piecewise linear (y = ax, up to a frequency F, and then it "breaks" so
89 * Nyquist frequency matches in both scales.
91 * Added two switches, -warp_type and -warp_params. The first specifies
92 * the type, which valid values:
94 * -inverse or inverse_linear
96 * -piecewise or piecewise_linear
98 * The inverse_linear is the same as implemented by EHT. The -mel_warp
99 * switch was kept for compatibility (maybe remove it in the
100 * future?). The code is compatible with EHT's changes: cepstra created
101 * from code after his changes should be the same as now. Scripts that
102 * worked with his changes should work now without changes. Tested a few
103 * cases, same results.