www.pudn.com > features.rar > Test_feature.cpp
// *********************************************************************
// * This file is part of RES 6.0. *
// * RES 6.0 is an original software distributed within the book *
// * *
// * |-----------------------------------------------------| *
// * | "Speech Recognition: Theory and C++ Implementation" | *
// * | John Wiley & Sons, Ltd | *
// * | by Claudio Becchetti and Lucio Prina Ricotti | *
// * |-----------------------------------------------------| *
// * *
// * See copyright.txt file for further info. on copyright *
// *********************************************************************
// _________________________________________________________________________
// |-----------------------------------------------------------------------|
// | |
// | FILE: Test_feature.cpp |
// | FUNCTIONALITY: Test for feature extraction |
// | PROGRAM: |
// | COMMENTS: |
// | CONTRIBUTIONS: Claudio & Antonio, Fabrizio |
// | ACTUAL REVISION: 6.0 |
// | DATA ACTUAL REVISION: 19/11/98 |
// | FIRST VERSION: 1.0 |
// | DATA FIRST VERSION: 25/2/96 |
// | |
// |-----------------------------------------------------------------------|
// _________________________________________________________________________
#include "../features/feature.h"
#include "../ioclass/soundlab.h"
//5/02/98 eliminted vetshortint
void Test_Features()
{
FeatureExtraction feature;
DbaseVoc dbase;
VetDouble sample, feature_vet;
String config;
VetDoubleList prev_vetsmp_list;
t_real smp_rate;
t_index i, order=2;
dbase.Configure("res.ini",TRUE);
dbase.Get_Sequential_Vet(sample);
smp_rate=dbase.Smp_Rate();
mstat<<"Configure feature class...";
feature.Configure("res.ini");
mstat<<"configure ok!";
feature.Actual_Configuration_String(config);
mstat<<"Feature Configuration:";
mstat<>key;
return;
}