Mercurial > hg > aimc
comparison src/Modules/Features/ModuleGaussians.cc @ 23:491b1b1d1dc5
-Added AIMCopy, a replacement for HTK's HCopy
-Set "Id" keyword on all .cc, .h and .py files
-Added FileList class to aupport AIMCopy
-Added a first go at a Module factory class. It's not to be used at the moment, but it will serve as a reminder to implement a proper factory soon.
author | tomwalters |
---|---|
date | Tue, 23 Feb 2010 12:47:01 +0000 |
parents | fff25824d1d1 |
children | c5f5e9569863 |
comparison
equal
deleted
inserted
replaced
22:645cfd371cff | 23:491b1b1d1dc5 |
---|---|
21 */ | 21 */ |
22 | 22 |
23 /*! | 23 /*! |
24 * \author Thomas Walters <tom@acousticscale.org> | 24 * \author Thomas Walters <tom@acousticscale.org> |
25 * \date created 2008/06/23 | 25 * \date created 2008/06/23 |
26 * \version \$Id: ModuleGaussians.cc 2 2010-02-02 12:59:50Z tcw $ | 26 * \version \$Id$ |
27 */ | 27 */ |
28 | 28 |
29 #include <math.h> | 29 #include <math.h> |
30 | 30 |
31 #include "Modules/Features/ModuleGaussians.h" | 31 #include "Modules/Features/ModuleGaussians.h" |
35 ModuleGaussians::ModuleGaussians(Parameters *params) : Module(params) { | 35 ModuleGaussians::ModuleGaussians(Parameters *params) : Module(params) { |
36 // Set module metadata | 36 // Set module metadata |
37 module_description_ = "Gaussian Fitting to SSI profile"; | 37 module_description_ = "Gaussian Fitting to SSI profile"; |
38 module_identifier_ = "gaussians"; | 38 module_identifier_ = "gaussians"; |
39 module_type_ = "features"; | 39 module_type_ = "features"; |
40 module_version_ = "$Id: ModuleGaussians.cc 2 2010-02-02 12:59:50Z tcw $"; | 40 module_version_ = "$Id$"; |
41 | 41 |
42 m_iParamNComp = parameters_->DefaultInt("features.gaussians.ncomp", 4); | 42 m_iParamNComp = parameters_->DefaultInt("features.gaussians.ncomp", 4); |
43 m_fParamVar = parameters_->DefaultFloat("features.gaussians.var", 115.0); | 43 m_fParamVar = parameters_->DefaultFloat("features.gaussians.var", 115.0); |
44 m_fParamPosteriorExp = | 44 m_fParamPosteriorExp = |
45 parameters_->DefaultFloat("features.gaussians.posterior_exp", 6.0); | 45 parameters_->DefaultFloat("features.gaussians.posterior_exp", 6.0); |