Source: HMM/include/acoustic_model.h
|
|
|
|
// Copyright (C) 1999 Jean-Marc Valin
#ifndef ACCOUSTIC_MODEL_H
#define ACCOUSTIC_MODEL_H
#include "gmm.h"
#include "gaussian.h"
#include "covariance.h"
#include "Object.h"
#include <iostream>
#include "covariance_set.h"
#include "mean_set.h"
#include "gaussian_set.h"
#include "gmm_set.h"
//#include "state.h"
class AcousticModel : public Object{
protected:
CovarianceSet covariances;
MeanSet means;
GaussianSet gaussians;
GMMSet gmms;
public:
AcousticModel() {}
/**convert all elements to using IDs (before saving)*/
void toIDs();
/**convert all elements to using Ptrs (after loading)*/
void toPtrs();
/** print function used for operator << */
virtual void printOn(ostream &out=cout) const;
/**Read function used for operator >> */
void readFrom (istream &in=cin);
/**extractor operator*/
friend istream &operator >> (istream &in, AcousticModel &mdl);
};
#endif
Generated by: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:40 2002, using kdoc 2.0a40. |