Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: webrtc/modules/audio_processing/vad/gmm.h

Issue 1181933002: Pull the Voice Activity Detector out from the AGC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove unused files from isolate Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_AGC_GMM_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_VAD_GMM_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AGC_GMM_H_ 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_VAD_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
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_AGC_GMM_H_ 45 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_VAD_GMM_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/vad/common.h ('k') | webrtc/modules/audio_processing/vad/gmm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698