quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_pr.a #include <StatisticalModelAdaptation.h> StatisticalModelAdaptation(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION, float split_threshold, float merge_threshold, float num_occ_threshold); boolean eq(const StatisticalModelAdaptation& arg); boolean setAlgorithm(ALGORITHM algorithm);
description:StatisticalModelAdaptation smadp; smadp.setAlgorithm(MLLR); smadp.setImplementation(MEAN); smadp.adapt(RegressionDecisionTree& rdt_a, Vector& stat_models_a);
static const String CLASS_NAME = L"StatisticalModelAdaptation";
enum ALGORITHM { MLLR = 0, MAP, DEF_ALGORITHM = MLLR };
enum IMPLEMENTATION { MEAN = 0, VARIANCE, DEF_IMPLEMENTATION = MEAN };
static const NameMap ALGO_MAP(L"MLLR MAP");
static const NameMap IMPL_MAP(L"MEAN VARIANCE");
static const String DEF_PARAM = L"";
static const String PARAM_ALGORITHM = L"algorithm";
static const String PARAM_IMPLEMENTATION = L"implementation";
static const String PARAM_IMPLEMENTATION = L"debug_level";
static const long ERR = 00100750;
static const long ERR = 00100751;
typedef BiGraphVertex<RegressionDecisionTreeNode> TreeNode;
ALGORITHM algorithm_d;
IMPLEMENTATION implementation_d;
Vectorw_transform_d;
debug_level_d;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
boolean setDebug(Integral::DEBUG level);
~StatisticalModelAdaptation();
StatisticalModelAdaptation(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION);
StatisticalModelAdaptation(const StatisticalModelAdaptation& arg);
boolean assign(const StatisticalModelAdaptation& arg);
StatisticalModelAdaptation& operator= (const StatisticalModelAdaptation& 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 StatisticalModelAdaptation& 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 adapt(RegressionDecisionTree& rdt_a, Vector& stat_models_a);
boolean setParser(SofParser* parser);
BiGraphVertex* findTerminal(RTreeNode*& root_node_a, long index_a);