Segmenter Class Reference

This class can determine which cluster a certain stream of feature vectors is closest to. The class Train_Segmenter can train these clusters. More...

Inheritance diagram for Segmenter:

List of all members.


Public Member Functions

 Segmenter ()
 Segmenter (FILE *inFile)
 ~Segmenter ()
float segmentFeaturePool (int inputSegID, int inputLabelID, int outputSegID)
void setFeaturePool (FeaturePool *fp)
int getNumberOfModels () const

Protected Member Functions

void createLexicalTree (int minNumberOfFrames, int *forEachFrames1=NULL, double *forEachFrames2=NULL)
float createSegments (int segID, SegmentationAdmin *admin)

Protected Attributes

int numberOfClusters
FeaturePoolfeaturePool
Vector ** discrTrain
Vector ** discrTrainMask
int discrTrainLen

Detailed Description

This class can determine which cluster a certain stream of feature vectors is closest to. The class Train_Segmenter can train these clusters.

Constructor & Destructor Documentation

Segmenter::Segmenter (  ) 

This constructor initialises the cluster parameters and sets the LexicalTree parameters for speaker clustering (defined in standard.h).

References discrTrain, discrTrainMask, numberOfClusters, LexicalTree::overwritePrunePars(), and LexicalTree::overwriteWeightPars().

Here is the call graph for this function:

Segmenter::Segmenter ( FILE *  inFile  ) 

This constructor initialises the cluster parameters and sets the LexicalTree parameters for speaker clustering (defined in standard.h). It also loads an existing clustering from inFile.

References discrTrain, discrTrainMask, WriteFileLittleBigEndian::freadEndianSafe(), numberOfClusters, LexicalTree::numberOfPhones, LexicalTree::overwritePrunePars(), LexicalTree::overwriteWeightPars(), and LexicalTree::phoneModels.

Here is the call graph for this function:

Segmenter::~Segmenter (  ) 

The destructor clears any used memory.

References discrTrain, discrTrainLen, discrTrainMask, LexicalTree::numberOfPhones, and LexicalTree::phoneModels.


Member Function Documentation

float Segmenter::createSegments ( int  segID,
SegmentationAdmin admin 
) [protected]

int Segmenter::getNumberOfModels (  )  const [inline]

References numberOfClusters.

float Segmenter::segmentFeaturePool ( int  inputSegID,
int  inputLabelID,
int  outputSegID 
)

void Segmenter::setFeaturePool ( FeaturePool fp  ) 

Sets the feature pool.

References featurePool.

Referenced by Train_Segmenter::Train_Segmenter().


Member Data Documentation

int Segmenter::discrTrainLen [protected]

Referenced by ~Segmenter().