#include <iostream>#include <fstream>#include <cstdio>#include <cassert>#include <cmath>#include "TrainTools.h"
Go to the source code of this file.
Defines | |
| #define | LIA_SPKTOOLS_API |
Functions | |
| LIA_SPKTOOLS_API SegCluster & | mergeCluster (SegCluster &c1, SegCluster &c2, SegServer &segTemp, String merge="NULL") |
| LIA_SPKTOOLS_API double | clrCrit (Config &config, SegCluster &c1, SegCluster &c2, StatServer &ss, FeatureServer &fs, MixtureGD &m1, MixtureGD &m2, MixtureGD &world) |
| LIA_SPKTOOLS_API double | gllrCrit (Config &config, SegCluster &c1, SegCluster &c2, SegCluster &c12, StatServer &ss, FeatureServer &fs, MixtureGD &m1, MixtureGD &m2, MixtureGD &m12) |
| LIA_SPKTOOLS_API double | bicCrit (Config &config, SegCluster &c1, SegCluster &c2, SegCluster &c12, StatServer &ss, FeatureServer &fs, MixtureGD &m1, MixtureGD &m2, MixtureGD &m12) |
| LIA_SPKTOOLS_API double | deltabicCrit (Config &config, SegCluster &c1, SegCluster &c2, SegCluster &c12, StatServer &ss, FeatureServer &fs, MixtureGD &m1, MixtureGD &m2, MixtureGD &m12) |
| LIA_SPKTOOLS_API double | clusteringCriterionByAdapt (Config &config, Seg *segment1, Seg *segment2, StatServer &ss, FeatureServer &fs, MixtureGD &world, String crit) |
| LIA_SPKTOOLS_API double | clusteringCriterion (Config &config, Seg *segment1, Seg *segment2, StatServer &ss, FeatureServer &fs, MixtureGD &world, String crit) |
| LIA_SPKTOOLS_API double | clusteringCriterionWithoutWorldInit (Config &config, SegCluster &c1, SegCluster &c2, StatServer &ss, FeatureServer &fs, MixtureGD &world, String crit) |
| LIA_SPKTOOLS_API double | clusteringCriterionWithoutWorldInit (Config &config, SegCluster &c1, MixtureGD &m1, SegCluster &c2, MixtureGD &m2, StatServer &ss, FeatureServer &fs, MixtureGD &world, String crit) |
| LIA_SPKTOOLS_API double | clusteringCriterionWithoutWorldInit (Config &config, Seg *segment1, Seg *segment2, StatServer &ss, FeatureServer &fs, MixtureGD &world, String crit) |
| LIA_SPKTOOLS_API bool | isSimilarSegment (Config &config, Seg *segment1, Seg *segment2, StatServer &ss, FeatureServer &fs, MixtureGD &world, String crit) |
| LIA_SPKTOOLS_API Seg * | bestFittingSegment (Config &config, SegCluster &cluster, MixtureGD &m, StatServer &ss, FeatureServer &fs) |
| LIA_SPKTOOLS_API Seg * | bestFittingSegment (Config &config, SegCluster &cluster, MixtureGD &m, StatServer &ss, FeatureServer &fs, MixtureGD &world) |
| LIA_SPKTOOLS_API Seg * | bestFittingSegment (Config &config, SegCluster &cluster, MixtureGD &m, StatServer &ss, FeatureServer &fs, hmm &actualHMM, unsigned long except) |
| LIA_SPKTOOLS_API unsigned long | bestFittingCluster (Config &config, hmm &actualHMM, SegServer &actualSeg, Seg *segment, StatServer &ss, FeatureServer &fs, unsigned long exceptInd=200) |
| LIA_SPKTOOLS_API void | intraCluster (Config &config, hmm &actualHMM, SegServer &actualSeg, StatServer &ss, FeatureServer &fs, MixtureGD &world, String crit) |
| LIA_SPKTOOLS_API void | interCluster (Config &config, hmm &actualHMM, SegServer &actualSeg, StatServer &ss, FeatureServer &fs, MixtureGD &world, String crit) |
| #define LIA_SPKTOOLS_API |
Definition at line 62 of file ClusteringCriterion.h.
| LIA_SPKTOOLS_API unsigned long bestFittingCluster | ( | Config & | config, |
| hmm & | actualHMM, | ||
| SegServer & | actualSeg, | ||
| Seg * | segment, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| unsigned long | exceptInd = 200 |
||
| ) |
Definition at line 771 of file ClusteringCriterion.cpp.
References hmm::getDensity(), meanLikelihood(), and verbose.
| LIA_SPKTOOLS_API Seg* bestFittingSegment | ( | Config & | config, |
| SegCluster & | cluster, | ||
| MixtureGD & | m, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs | ||
| ) |
Definition at line 635 of file ClusteringCriterion.cpp.
References endSeg(), meanLikelihood(), verbose, and verboseLevel.
Referenced by interCluster(), and intraCluster().
| LIA_SPKTOOLS_API Seg* bestFittingSegment | ( | Config & | config, |
| SegCluster & | cluster, | ||
| MixtureGD & | m, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world | ||
| ) |
Definition at line 678 of file ClusteringCriterion.cpp.
References endSeg(), meanLikelihood(), verbose, and verboseLevel.
| LIA_SPKTOOLS_API Seg* bestFittingSegment | ( | Config & | config, |
| SegCluster & | cluster, | ||
| MixtureGD & | m, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| hmm & | actualHMM, | ||
| unsigned long | except | ||
| ) |
Definition at line 724 of file ClusteringCriterion.cpp.
References cohortMaxLikelihood(), endSeg(), meanLikelihood(), verbose, and verboseLevel.
| LIA_SPKTOOLS_API double bicCrit | ( | Config & | config, |
| SegCluster & | c1, | ||
| SegCluster & | c2, | ||
| SegCluster & | c12, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | m1, | ||
| MixtureGD & | m2, | ||
| MixtureGD & | m12 | ||
| ) |
Definition at line 136 of file ClusteringCriterion.cpp.
References gllrCrit(), totalFrame(), and verbose.
Referenced by clusteringCriterion(), clusteringCriterionByAdapt(), and clusteringCriterionWithoutWorldInit().
| LIA_SPKTOOLS_API double clrCrit | ( | Config & | config, |
| SegCluster & | c1, | ||
| SegCluster & | c2, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | m1, | ||
| MixtureGD & | m2, | ||
| MixtureGD & | world | ||
| ) |
Definition at line 73 of file ClusteringCriterion.cpp.
References accumulateStatLLK(), totalFrame(), verbose, and verboseLevel.
Referenced by clusteringCriterion(), clusteringCriterionByAdapt(), and clusteringCriterionWithoutWorldInit().
| LIA_SPKTOOLS_API double clusteringCriterion | ( | Config & | config, |
| Seg * | segment1, | ||
| Seg * | segment2, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world, | ||
| String | crit | ||
| ) |
Definition at line 224 of file ClusteringCriterion.cpp.
References bicCrit(), clrCrit(), endSeg(), gllrCrit(), globalMeanCov(), TrainCfg::setBaggedFrameProbability(), TrainCfg::setNbTrainIt(), trainModel(), and verbose.
| LIA_SPKTOOLS_API double clusteringCriterionByAdapt | ( | Config & | config, |
| Seg * | segment1, | ||
| Seg * | segment2, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world, | ||
| String | crit | ||
| ) |
Definition at line 165 of file ClusteringCriterion.cpp.
References adaptModel(), bicCrit(), clrCrit(), endSeg(), gllrCrit(), MAPCfg::setBaggedFrameProbability(), MAPCfg::setMeanReg(), MAPCfg::setMethod(), and verbose.
| LIA_SPKTOOLS_API double clusteringCriterionWithoutWorldInit | ( | Config & | config, |
| SegCluster & | c1, | ||
| SegCluster & | c2, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world, | ||
| String | crit | ||
| ) |
Definition at line 319 of file ClusteringCriterion.cpp.
References bicCrit(), clrCrit(), deltabicCrit(), gllrCrit(), globalMeanCov(), mergeCluster(), mixtureInit(), TrainCfg::setBaggedFrameProbability(), TrainCfg::setBaggedFrameProbabilityInit(), TrainCfg::setFinalVarFlooring(), TrainCfg::setInitVarFlooring(), TrainCfg::setNbTrainIt(), trainModel(), and verbose.
Referenced by clusteringCriterionWithoutWorldInit(), and isSimilarSegment().
| LIA_SPKTOOLS_API double clusteringCriterionWithoutWorldInit | ( | Config & | config, |
| SegCluster & | c1, | ||
| MixtureGD & | m1, | ||
| SegCluster & | c2, | ||
| MixtureGD & | m2, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world, | ||
| String | crit | ||
| ) |
Definition at line 476 of file ClusteringCriterion.cpp.
References bicCrit(), clrCrit(), deltabicCrit(), gllrCrit(), globalMeanCov(), mergeCluster(), mixtureInit(), TrainCfg::setBaggedFrameProbability(), TrainCfg::setBaggedFrameProbabilityInit(), TrainCfg::setFinalVarFlooring(), TrainCfg::setInitVarFlooring(), TrainCfg::setNbTrainIt(), totalFrame(), trainModel(), and verbose.
| LIA_SPKTOOLS_API double clusteringCriterionWithoutWorldInit | ( | Config & | config, |
| Seg * | segment1, | ||
| Seg * | segment2, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world, | ||
| String | crit | ||
| ) |
Definition at line 563 of file ClusteringCriterion.cpp.
References clusteringCriterionWithoutWorldInit(), endSeg(), and verbose.
| LIA_SPKTOOLS_API double deltabicCrit | ( | Config & | config, |
| SegCluster & | c1, | ||
| SegCluster & | c2, | ||
| SegCluster & | c12, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | m1, | ||
| MixtureGD & | m2, | ||
| MixtureGD & | m12 | ||
| ) |
Definition at line 152 of file ClusteringCriterion.cpp.
References gllrCrit(), totalFrame(), and verbose.
Referenced by clusteringCriterionWithoutWorldInit().
| LIA_SPKTOOLS_API double gllrCrit | ( | Config & | config, |
| SegCluster & | c1, | ||
| SegCluster & | c2, | ||
| SegCluster & | c12, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | m1, | ||
| MixtureGD & | m2, | ||
| MixtureGD & | m12 | ||
| ) |
Definition at line 108 of file ClusteringCriterion.cpp.
References accumulateStatLLK(), totalFrame(), verbose, and verboseLevel.
Referenced by bicCrit(), clusteringCriterion(), clusteringCriterionByAdapt(), clusteringCriterionWithoutWorldInit(), and deltabicCrit().
| LIA_SPKTOOLS_API void interCluster | ( | Config & | config, |
| hmm & | actualHMM, | ||
| SegServer & | actualSeg, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world, | ||
| String | crit | ||
| ) |
Definition at line 814 of file ClusteringCriterion.cpp.
References bestFittingSegment(), endSeg(), hmm::getDensity(), isSimilarSegment(), verbose, and verboseLevel.
| LIA_SPKTOOLS_API void intraCluster | ( | Config & | config, |
| hmm & | actualHMM, | ||
| SegServer & | actualSeg, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world, | ||
| String | crit | ||
| ) |
Definition at line 795 of file ClusteringCriterion.cpp.
References bestFittingSegment(), endSeg(), hmm::getDensity(), isSimilarSegment(), verbose, and verboseLevel.
| LIA_SPKTOOLS_API bool isSimilarSegment | ( | Config & | config, |
| Seg * | segment1, | ||
| Seg * | segment2, | ||
| StatServer & | ss, | ||
| FeatureServer & | fs, | ||
| MixtureGD & | world, | ||
| String | crit | ||
| ) |
Definition at line 586 of file ClusteringCriterion.cpp.
References clusteringCriterionWithoutWorldInit().
Referenced by interCluster(), and intraCluster().
| LIA_SPKTOOLS_API SegCluster& mergeCluster | ( | SegCluster & | c1, |
| SegCluster & | c2, | ||
| SegServer & | segTemp, | ||
| String | merge = "NULL" |
||
| ) |
Definition at line 298 of file ClusteringCriterion.cpp.
Referenced by clusteringCriterionWithoutWorldInit().
1.7.2