📄 fea_stat.5t
字号:
.\" Copyright (c) 1987, 1988 Entropic Speech, Inc. All rights reserved..\" @(#)fea_stat.5t 1.6 24 Sep 1997 ESI.TH FEA_STAT 5\-ESPS 24 Sep 1997.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH NAMEESPS Statistics Feature File Subtype \- (.stat).SH SYNOPSIS.nf.ft B#include <esps/esps.h>#include <esps/fea.h>#include <esps/fstat.h>.fi.SH DESCRIPTION.PPThe FEA_STAT file is a subtype of the FEA file. If \fIhd\fR is a pointer to the header of such a file, then \fIhd\->hd.fea\->fea_type\fR== FEA_STAT. FEA_STAT files are used to store statistical parametersuseful for classification. FEA_STAT files are created by calling .I init_feastat_hd(3\-ESPSu) after .I new_header(3\-ESPSu). .PPThe header for a FEA_STATfile contains the following generic header items:.PP.TScenter, box, tab(;);c | c | c | cl | l | l | l.Name;Size;Type;Enums=statfield;(varies);character;NULLstatsize;1;long;NULL;.TE.PPThe generic header items have the following meanings:.IP statfieldThe name of the field on which statistics were computed. A pointerto the header of the file on which statistics were computed is stored in the .I variable.refhdheader item in the FEA_STAT file header. For example, if a FEA_STAT file is generated by .I fea_stats(1\-ESPS), .I statfield would be the name of one of the fields in the input file to .I fea_stats,and .I variable.refhdin the FEA_STAT header would be a pointer to the header of the input file to .I fea_stats.Note that the information available through.I variable.refhdallows programs that process FEA_STAT files to assemble compatible classification vectors from input FEA files. .IP statsizeThe size of the field on which statistics were computed..PP.ne 10The header of a FEA_STAT file also contains definitions for one or more of the record fields given by the following table:.PP.TScenter, box, tab(;);c | c | c | c | c | c l | l | l | l | l | l.Name;Size;Rank;Dimen;Type;Enums=class;1;0;NULL;coded;(varies)nsamp;1;0;NULL;long;NULLmean;\fIstatsize\fP;1;NULL;float;NULLcovar;\fIstatsize * statsize\fP;2;{\fIstatsize, statsize\fP};float;NULLinvcovar;\fIstatsize * statsize\fP;2;{\fIstatsize, statsize\fP};float;NULLeigenval;\fIstatsize\fP;1;NULL;float;NULLeigenvec;\fIstatsize * statsize\fP;2;{\fIstatsize, statsize\fP};float;NULL.TE.PPThe three fields class, nsamp, and mean, are always present in a FEA_STAT file.The other fields, covar, invcovar, eigenval, and eigenvec are optionfields that can be created by calling \fIinit_feastat_hd\fP(3\-ESPSu).Either.I eigenvaland.I eigenvecare both present, or both are absent. See \fIfea\fR(5\-ESPS) for additional information on the meaning of the table columns..PPIn most cases, programs that deal with FEA_STAT files will use the supportroutines provided in the ESPS library and will not have to make directuse of the information in the above tables. The library routine.I init_feastat_hd(3\-ESPSu) creates the record fields and the generic header items..PPPrograms that deal with FEA_STAT files do so in terms of structures oftype (struct fstat) \- pointers to structures of this type are returned by .I allo_feastat_rec(3\-ESPSu), and the FEA_STAT read and write routines (\fIget_fstat_rec\fRand \fIput_fstat_rec\fP) have parameters of type (struct fstat). Here is the definition of the fstat struct (given in \fI<esps/fstat.h>\fR):.nf.ta .5i 1i 1.75i struct fstat { short *class; long *nsamp; float *mean; float **covar; float **invcovar; float *eigenval; float **eigenvec; struct fea_data *fea_rec; };.fi.PPThe record fields have the following meanings:.IP classThis field contains a list of all the possible types of classes available.For example, in making voicing decisions a valid class might be given by{"voiced", "unvoiced", "silent"}..IP nsampThis is the number of sample vectors that were averaged in computingthe mean and covariance, \fIi. e.,\fP the number of records that wereprocessed..IP meanThis is a vector which consists of the average of \fIstatfield\fPin a FEA file across all records..IP covarThis is the sample covariance matrix corresponding to \fIstatfield\fP ina FEA file..IP invcovarThis field contains the sample inverse covariance matrix..IP eigenvalThis is a vector which contains the eigenvalues of the covariance matrix..IP eigenvecThis is a matrix which contains the eigenvectors of the covariance matrix..IP fea_recThis is a pointer to the FEA file record in which all the FEA_STAT information is stored. Programs should not use this value directly..SH SEE ALSO.PP.IR set_fea_deriv (3\-ESPSu),.IR get_fea_deriv (3\-ESPSu), .br.IR init_feastat_hd (3\-ESPSu),.IR allo_feastat_rec (3\-ESPSu),.br.IR get_feastat_rec (3\-ESPSu),.IR put_feastat_rec (3\-ESPSu),.br.IR get_genhd (3\-ESPSu),.IR FEA (5\-ESPS),.IR ESPS (5\-ESPS).SH RECORD ELEMENT FILE STRUCTURE.PPIn order to use this (or any other) FEA file type with a generic ESPSprogram (one that operates on any file type) it is necessary to know howrecord elements are positioned in the file. For a FEA filethat information is obtained by running the program\fIfea_element\fR(1\-ESPS) on the file in question..SH FILES.PP.nf/usr/include/esps/fea.h/usr/include/esps/feastat.h.SH AUTHORManual page by John Shore
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -