00001 /* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ 00002 /* ==================================================================== 00003 * Copyright (c) 2007 Carnegie Mellon University. All rights 00004 * reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 00010 * 1. Redistributions of source code must retain the above copyright 00011 * notice, this list of conditions and the following disclaimer. 00012 * 00013 * 2. Redistributions in binary form must reproduce the above copyright 00014 * notice, this list of conditions and the following disclaimer in 00015 * the documentation and/or other materials provided with the 00016 * distribution. 00017 * 00018 * This work was supported in part by funding from the Defense Advanced 00019 * Research Projects Agency and the National Science Foundation of the 00020 * United States of America, and the CMU Sphinx Speech Consortium. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND 00023 * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00024 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00025 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY 00026 * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00027 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00028 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00029 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00030 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00031 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00032 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 * 00034 * ==================================================================== 00035 * 00036 */ 00044 #ifndef __GAU_CB_FLOAT64_H__ 00045 #define __GAU_CB_FLOAT64_H__ 00046 00047 #include <sphinx_config.h> 00048 #include <cmd_ln.h> 00049 #include <gau_cb.h> 00050 #include <fe.h> 00051 00052 00053 #ifdef __cplusplus 00054 extern "C" { 00055 #endif 00056 #if 0 00057 /* Fool Emacs. */ 00058 } 00059 #endif 00060 00064 typedef struct gau_den_float64_s gau_den_float64_t; 00065 struct gau_den_float64_s { 00066 int32 idx; 00067 float64 val; 00068 }; 00069 00074 gau_cb_t *gau_cb_float64_read( 00075 cmd_ln_t *config, 00076 const char *meanfn, 00077 const char *varfn, 00078 const char *normfn 00080 ); 00081 00085 void gau_cb_float64_free(gau_cb_t *gau); 00086 00093 int gau_cb_float64_compute_all(gau_cb_t *cb, int mgau, int feat, 00094 mfcc_t *obs, float64 *out_den, float64 worst); 00095 00102 int gau_cb_float64_compute(gau_cb_t *cb, int mgau, int feat, 00103 mfcc_t *obs, 00104 gau_den_float64_t *inout_den, int nden); 00105 00109 float32 ****gau_cb_float64_get_means(gau_cb_t *cb); 00110 00114 float32 ****gau_cb_float64_get_invvars(gau_cb_t *cb); 00115 00119 float32 ***gau_cb_float64_get_norms(gau_cb_t *cb); 00120 00121 #ifdef __cplusplus 00122 } 00123 #endif 00124 00125 00126 #endif /* __GAU_CB_FLOAT64_H__ */
1.5.5