📄 vq.1
字号:
.\" @(#)vq.1 3.9 4/7/97 ESI.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.TH VQ 1\-ESPS 4/7/97.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH "NAME"vq - vector quantize a field in FEA records.SH "SYNOPSIS".B vq[.BI \-x " debug_level"] [.BI \-h " histfile"] [.BI \-f " fieldname"] [.BI \-c " record"] [.BI \-i ].I "cbk.fea fea.in fea.out".SH "DESCRIPTION".PP.I Vqreads the ESPS FEA_VQ file .I cbk.feato obtain a vector quantization codebook. .I Vqthen reads an file.I fea.in,encodes a particular field from each FEA record, and then outputs the encoded fields to.I fea.out..I Fea.outalso contains the rest of the information from .I fea.in,i.e., the contents of the two files are identical except for the quantized field within each record. .PPIf "\-" is supplied in place of .I fea.in, then standard input is used. If "\-" is supplied in place of .I fea.out,then standard output is used. .PP.I Vqdetermines which distortion measure to use from the information stored in the FEA_VQ file. In many cases, .I vqwill be used with codebooks designed using .I vqdes(1\-ESPS), although this is not required. If there are field to be quantized in .I input.anais larger than the dimension of the codewords in .I cbk.fea,the extra elements are set to zero in the output file. .PPThe field to quantize (specified by the \fB-f\fP option) must be oftype FLOAT. Note that \fIfeafunc\fP can be used to transform the datatype of fields. .SH OPTIONS.PPThe following options are supported:.TP.BI \-x " debug_level"If .I "debug_level \fR[0]\fP"is positive,.I vqoutputs debugging messages and other information about the codebookdesign to a history file. The messages proliferate as .I debug_level increases. For level 0, there is no output. For level 1, the size ofthe input sequence, the average distortion, the standard deviation ofthe distortion, and the maximum distortion are output. For level 2, thecodebook itself is also output. For level 3, information isoutput for every input vector, namely the index of the closest codeword,the distortion with respect to the closest codeword,and the cumulative average distortion. For level 4, the output alsoincludes the input vectors and the output vectors..TP.BI \-h " histfile \fR[vqhist]\fP"Specifies the file to use for history and debugging output. .TP.BI \-f " fieldname \fR[spec_param]\fP"Specifies the name of the field to be quantized in each .I fea.in record. .TP.BI \-c " record"Specifies an integer record number within .I cbk.feato use as the codebook. If the \fB\-c\fP option is not used, then the last record in .I cbk.feais used as the codebook. .TP .BI \-iSpecifies that only the codword index and not the quantizedfield \fIfieldname\fP be written to \fIfea.out\fP. .SH "ESPS PARAMETERS".PPThe ESPS parameter file is not read. .SH ESPS COMMON.PPNo values are written to ESPS Common. .SH ESPS HEADERS.PP.I Vqreads the usual information from the \fIfea.in\fP header. The headerfor \fIfea.out\fP is created using .I copy_header(3\-ESPS),with the usual record-keeping fields filled in. A field is addedwhich contains the codeword index associated with the quantized valueof \fIfieldname\fP. The name of this field is obtained by appendingthe suffix \fI_cwndx\fP to the name of the quantized field, e.g.the default field name is \fIspec_param_cwndx\fP. This field is a single integer of data type LONG. If the \fB\-i\fP option isspecified, the field \fIfieldname\fP is not included in the file\fIfea.out\fP..PPThe generic header item \fIstart_time\fP is written in the outputfile. The value written is computed by taking the \fIstart_time\fPvalue from the header of the input file (or zero, if such a headeritem doesn't exist) and adding to it the relative time from the firstrecord in the file to the first record processed. This relative timeis computed using the generic \fIrecord_freq\fP from the input file.If \fIrecord_freq\fP doesn't exist in the input file, \fIstart_time\fPis copied from the input file to the output file..PPIf it exists in the input file header, the generic header item\fIrecord_freq\fP is copied to the output file header. This itemgives the number of records per second of original data analyzed..PPThe generic header item \fIquantized\fP is set to YES in the output file. .PPBoth .I cbk.feaand.I fea.inare added to the output header as sources. .PP.I Vqcreates and writes the following generic header items (namesincremented using .I uniq_name(3\-ESPS) if they exist already):.sp.I "quantized_field".PPThis is the name of the quantized field (from \fB\-f\fP option)..sp.I "cbk_current_size".PPThe size of the quantization codebook..sp.I "cbk_dimen".PPThe dimension of codewords in the quantization codebook..sp.I "cbk_dist_type".PPThe type of distortion used in designing the codebook and inquantizing .I fea.in..sp.I "cbk_cbk_struct".PPThe structure of the quantization codebook..sp.I "cbk_cbk_type".PPThe type of the quantization codebook..sp.I "cbk_final_dist".PPThe final distortion of the training sequence that was used in theoriginal design of the quantization codebook..sp.I "encode_distortion".PPThe average distortion resulting from encoding .I fea.in.This is left as -1 if the output is standard output. .SH "FUTURE CHANGES".PP.SH "SEE ALSO".PP.nfvqdes(1\-ESPS), vqdesasc(1\-ESPS), vqasc(1\-ESPS), vqdesign(3\-ESPS), \fIfeafunc\fP(1\-\s-1ESPS\s+1), \fImergefea\fP (1\-\s-1ESPS\s+1),FEA_VQ(5\-ESPS), FEA(5\-ESPS), ESPS(5\-ESPS).fi.SH "WARNINGS AND DIAGNOSTICS".PP.PPVq will exit with a diagnostic if any of the following hold:.IPIt can't read the input ESPS file headers or they are not of the right type..IP.I Fieldname is not a valid record field in \fIfea.in\fP..IPThe field .I fieldnamein \fIfea.in\fP is not of type FLOAT..IPThe field .I fieldnamein \fIfea.in\fP is smaller than the size of the VQ codewords..IPThere are insufficient records in \fIcbk.fea\fP. .PPWarnings will be issued if any of the following hold:.IPThe field .I fieldnamein \fIfea.in\fP is larger than the size of the VQ codewords. .IPThe field.I fieldnamein \fIfea.in\fP has a different name than the contants generic header item\fIfea_field\fP in \fIcbk.fea\fP, if that generic header item exists. .IPThe generic header item \fIquantized\fP is YES in \fIfea.in\fP (i.e., if any quantization has occured already on the input file). .SH "BUGS".PPNone known. .SH "REFERENCES".PPSee.I vqdesign(3\-ESPS). .SH "AUTHOR".PPManual page by John Shore; program by John Shore. Codeword indexfield added by Bill Byrne.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -