Mercurial > hg > aim92
comparison wdf/wdf_tl.h @ 0:5242703e91d3 tip
Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author | tomwalters |
---|---|
date | Fri, 20 May 2011 15:19:45 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:5242703e91d3 |
---|---|
1 /* | |
2 Copyright (c) Applied Psychology Unit, Medical Research Council. 1988, 1989 | |
3 =========================================================================== | |
4 | |
5 Permission to use, copy, modify, and distribute this software without fee | |
6 is hereby granted for research purposes, provided that this copyright | |
7 notice appears in all copies and in all supporting documentation, and that | |
8 the software is not redistributed for any fee (except for a nominal shipping | |
9 charge). Anyone wanting to incorporate all or part of this software in a | |
10 commercial product must obtain a license from the Medical Research Council. | |
11 | |
12 The MRC makes no representations about the suitability of this | |
13 software for any purpose. It is provided "as is" without express or implied | |
14 warranty. | |
15 | |
16 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | |
17 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE | |
18 A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY | |
19 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN | |
20 AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
21 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
22 */ | |
23 | |
24 /* | |
25 Acknowledgment: | |
26 ============== | |
27 | |
28 The source code provided in this file was originally developed by | |
29 Christian Giguere as part of a Ph.D degree at the Department of | |
30 Engineering of the University of Cambridge from April 1990 to | |
31 November 1993. The code was subsequently adapted under a grant | |
32 from the Hearing Research Trust for full compatibility with | |
33 AIM Release 6.15. | |
34 | |
35 Christian Giguere 25/03/94 | |
36 | |
37 */ | |
38 | |
39 /* | |
40 ============================================================= | |
41 wdf_tl.h | |
42 ============================================================= | |
43 | |
44 Wave digital filter (WDF) implementation of the cochlear | |
45 transmission line (TL) network. | |
46 | |
47 Author : Christian Giguere | |
48 First written : 19th March, 1991 | |
49 Last edited : 18th February, 1994 | |
50 ============================================================= | |
51 */ | |
52 | |
53 #ifndef _WDF_TL_H_ | |
54 | |
55 | |
56 /***** defines *****/ | |
57 | |
58 #define _WDF_TL_H_ | |
59 | |
60 #define DISPLACEMENT ( 0 ) | |
61 #define VELOCITY ( 1 ) | |
62 | |
63 | |
64 /***** private data structure for WDF-TL module *****/ | |
65 | |
66 typedef struct _wdf_filter_state WDFilterState ; | |
67 | |
68 struct _wdf_filter_state { | |
69 double gamma231 ; /* WDF multiplier coefficients (Adaptors 23-25) */ | |
70 double gamma241 ; | |
71 double gamma251, gamma252 ; | |
72 char *states; /* WDF state vector */ | |
73 char *coeffs ; /* WDF coefficient vector (not used) */ | |
74 double out_scale_disp ; /* scaling to convert output to BM displacement */ | |
75 double out_scale_vel ; /* scaling to convert output to BM velocity */ | |
76 double OHC_gain ; /* normalized OHC feedback gain */ | |
77 double OHC_sat ; /* normalized OHC half-saturation displacement */ | |
78 int active ; /* is channel active for display ? (0=no, 1=yes) */ | |
79 double rms ; /* BM rms vibration amplitude */ | |
80 long sample ; /* sample size in rms computation */ | |
81 } ; | |
82 | |
83 | |
84 /***** externals *****/ | |
85 | |
86 extern WDFilterState *WDFilter() ; | |
87 extern void DoWDFdataArray(), CloseWDF() ; | |
88 | |
89 #endif | |
90 |