OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_VAD_GMM_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC_GMM_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_VAD_GMM_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AGC_GMM_H_ |
13 | 13 |
14 namespace webrtc { | 14 namespace webrtc { |
15 | 15 |
16 // A structure that specifies a GMM. | 16 // A structure that specifies a GMM. |
17 // A GMM is formulated as | 17 // A GMM is formulated as |
18 // f(x) = w[0] * mixture[0] + w[1] * mixture[1] + ... + | 18 // f(x) = w[0] * mixture[0] + w[1] * mixture[1] + ... + |
19 // w[num_mixtures - 1] * mixture[num_mixtures - 1]; | 19 // w[num_mixtures - 1] * mixture[num_mixtures - 1]; |
20 // Where a 'mixture' is a Gaussian density. | 20 // Where a 'mixture' is a Gaussian density. |
21 | 21 |
22 struct GmmParameters { | 22 struct GmmParameters { |
(...skipping 12 matching lines...) Expand all Loading... |
35 // number of the mixtures. | 35 // number of the mixtures. |
36 int num_mixtures; | 36 int num_mixtures; |
37 }; | 37 }; |
38 | 38 |
39 // Evaluate the given GMM, according to |gmm_parameters|, at the given point | 39 // Evaluate the given GMM, according to |gmm_parameters|, at the given point |
40 // |x|. If the dimensionality of the given GMM is larger that the maximum | 40 // |x|. If the dimensionality of the given GMM is larger that the maximum |
41 // acceptable dimension by the following function -1 is returned. | 41 // acceptable dimension by the following function -1 is returned. |
42 double EvaluateGmm(const double* x, const GmmParameters& gmm_parameters); | 42 double EvaluateGmm(const double* x, const GmmParameters& gmm_parameters); |
43 | 43 |
44 } // namespace webrtc | 44 } // namespace webrtc |
45 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_VAD_GMM_H_ | 45 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_GMM_H_ |
OLD | NEW |