quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_pr.a #include <MaximumLikelihoodLinearRegression.h> MaximumLikelihoodLinearRegression(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION, float split_threshold, float merge_threshold, float num_occ_threshold); boolean eq(const MaximumLikelihoodLinearRegression& arg); boolean setAlgorithm(ALGORITHM algorithm);
description:MaximumLikelihoodLinearRegression mllr; mllr.setAlgorithm(REGRESSION_TREE); mllr.setImplementation(ML); mllr.initRegressionTree(Vector& stat_models_a, Vector & speech_tag_a); mllr.createTransform(Vector & stat_models_a); mllr.adapt(Vector & stat_models_a);
static const String CLASS_NAME = L"MaximumLikelihoodLinearRegression";
enum ALGORITHM { REGRESSION_TREE = 0, TRANSFORM, ADAPT, ALL, DEF_ALGORITHM = ALL ML = 0, DEF_ALGORITHM = ML };
enum IMPLEMENTATION { ML = 0, MEAN, VARIANCE, DEF_IMPLEMENTATION = ML };
enum SUPERVISION_MODE { SUPERVISED = 0, UNSUPERVISED, DEF_SUPERVISION_MODE = SUPERVISED };
enum SEQUENCE_MODE { BATCH = 0, INCREMENTAL, DEF_SEQUENCE_MODE = BATCH };>/pre>
static const NameMap ALGO_MAP(L"REGRESSION_TREE, TRANSFORM, ADAPT, ALL");
static const NameMap IMPL_MAP(L"DEFAULT");
static const NameMap SUP_MODE_MAP;
static const NameMap SEQ_MODE_MAP;
static const String DEF_PARAM = L"";
static const String PARAM_ALGORITHM = L"algorithm";
static const String PARAM_IMPLEMENTATION = L"implementation";
static const String PARAM_SUPERVISION_MODE = L"supervision_mode";
static const String PARAM_SEQUENCE_MODE = L"sequence_mode";
static const String PARAM_RDT = L"rdt";
static const String PARAM_SM_ADAPT = L"sm_adapt";
static const String PARAM_DBGL = L"debug_level";
static const int DEF_NUM_CLASSES = 1;
static const float DEF_MERGE_THRESHOLD = 5;
static const float DEF_NUM_OCC_THRESHOLD = 100;
static const long ERR = 00100700;
static const long ERR_UNALG_UNIMP = 00100701;
ALGORITHM algorithm_d;
IMPLEMENTATION implementation_d;
SUPERVISION_MODE supervision_mode_d;
SEQUENCE_MODE sequence_mode_d;
RegressionDecisionTree rdt_d;
StatisticalModelAdaptation sm_adapt_d;
Vectorstat_models_d;
DebugLevel debug_level_d;>/pre>
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
~MaximumLikelihoodLinearRegression();
MaximumLikelihoodLinearRegression(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION);
MaximumLikelihoodLinearRegression(const MaximumLikelihoodLinearRegression& arg);
boolean assign(const MaximumLikelihoodLinearRegression& arg);
MaximumLikelihoodLinearRegression& operator= (const MaximumLikelihoodLinearRegression& arg);
long sofSize() const;
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
boolean eq(const MaximumLikelihoodLinearRegression& arg) const;
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
boolean clear(Integral::CMODE ctype = Integral::DEF_CMODE);
boolean setAlgorithm(ALGORITHM algorithm);
boolean setImplementation(IMPLEMENTATION implementation);
boolean set(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION);
ALGORITHM getAlgorithm() const;
IMPLEMENTATION getImplementation() const;
boolean get(ALGORITHM& algorithm, IMPLEMENTATION& implementation);
boolean initRegressionTree(Vector& stat_models_a, Vector & speech_tag_a);
boolean createTransform(Vector& stat_models_a);
boolean adapt(Vector& stat_models_a);
boolean setParser(SofParser* parser);