man.diff
来自「speech signal process tools」· DIFF 代码 · 共 223 行
DIFF
223 行
.\" Copyright (c) 1987,1988,1990 Entropic Speech, Inc.; All rights reserved.\" @(#)pwr.1 1.9 03 Apr 1997 ESI.TH PWR 1\-ESPS 03 Apr 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 "NAME"pwr \- computes power of sampled data in FEA records .SH "SYNOPSIS".B pwr[.B \-l] [.BI \-P " params"] [.BI \-f " sd_field"[.BI \-f " power_field"]] [.BI \-r " range"] [.BI \-x " debug_level"].I "input output".SH "DESCRIPTION".PP.I Pwraccepts a FEA file \fIinput\fP containing a vector sampled-data fieldin each record (there may be other fields as well). It produces a FEAfile \fIoutput\fP with records containing the raw power (or log rawpower) of the sampled-data field from that record. Each field ofsampled data may be thought of as a separate frame of data, such asmight be produced by \fIframe\fP (1\-\s-1ESPS\s+1). The default namefor the sampled data field in \fIinput\fP is \fIsd\fP, and the defaultname for the power field in \fIoutput\fP is \fIraw_power\fP(\fIlog_power\fP if \fB-l\fP option used). Both defaults can bechanged by means of the \fB\-f\fP option. If \fIinput\fP is "\-",standard input is used for the input file. If \fIoutput\fP is "\-",standard input is used for the output file..PPThe power is computed by summing the squares of the sampled data values anddividing by the number of points in the frame. If \fIinput\fP is not asegment-labelled FEA file (see FEA (5\-\s-1ESPS\s+1)), the frame isconsidered to comprise all of the points in the sampled data field, so theframe length is a constant set to the size of the sampled data field (whichcan be determined from the file header). If \fIinput\fP issegment-labelled, the size of the sampled data field is really a maximumsize, and the frame size for a particular record is given by the\fIsegment_length\fP field (this field is always present in segment-labelledfiles). Thus, for segment-labelled files, the frame from any input recordis the first \fIsegment_length\fP points of the sampled data field..PPIf the \fB-l\fP is used, the (base 10) log of the raw power is storedin the output file instead of the raw power itself. To avoidcomputational overflow, logs are not taken for power values less than 10/DBL_MAX; in these cases the log power stored is log10(10/DBL_MAX),which is approximately -307.55. .SH OPTIONS.PPThe following options are supported:.TP.B \-lSpecifies that the log (base 10) of the raw power be computed insteadof the raw power. If this option is used, the default name for the output power field is \fIlog_power\fP; this name can be changed viathe \fB-f\fP option. .TP.BI \-P " param" " \fR[params]\fP"Specifies the name of the parameter file..TP.BI \-r " start" : "last" "\fR [1:(last in file)]".TP.BI \-r " start" :+ "nan"In the first form, a pair of unsigned integers specifies the rangeof records to be processed.Either.I startor.I lastmay be omitted; then the default value is used.If.IR last " = " start " + " nan,the second form (with the plus sign) specifies the same range as the first.The \fB\-r\fP overrides the values of \fIstart\fP and \fInan\fP from the parameter file. .TP.BI \-f " field_name" If this option is used once, it specifies the name of the sampled datafield in \fIinput\fP. If it is used twice, the second time itspecifies the name of the power field in \fIoutput\fP. The defaultnames for these fields are "sd" and "raw_power", respectively. If the \fB-l\fP option is used, the default name for the power fieldis "log_power". .SH "ESPS PARAMETERS".PPThe parameter file does not have to be present, since all theparameters have default values. The following parameters are read, ifpresent, from the parameter file:.IP.I "sd_field_name \- string".IPThis is the name of the sampled data field in \fIinput\fP.The default is "sd". A paramter file value (if present) is overiddenby the first use of the \fB\-f\fP option. .IP.I "power_field_name \- string".IPThis is the name of the raw power field in \fIoutput\fP. The default is"raw_power". A parameter file value (if present) is overidden by the seconduse of the \fB\-f\fP option..IP.I "power_function \- string".IPThis is the function to apply to value of the raw power beforestoring in the output file. The default is "none", which means thatthe output file is to contain the raw power value. The only otherrecognized value is "log", which means that the output file is to contain the log of the raw power. .IP.I "start \- integer".IPThis is the first record of \fIinput\fP to process.The default is 1.It is not read if the \fB\-r\fP option is used. .sp.I "nan \- integer".IPThis is the number of records to process. It is not read if the \fB\-r\fPoption is used.A value of zero means all subsequent records in the file;this is the default..PPRemember that command line option values override parameter file values..SH "ESPS COMMON".PPESPS Common processing may be disabled by setting the environmentvariable USE_ESPS_COMMON to "off". The default ESPS Common file is .espscom in the user's home directory. This may be overidden bysetting the environment variable ESPSCOM to the desired path. Userfeedback of Common processing is determined by the environmentvariable ESPS_VERBOSE, with 0 causing no feedback and increasinglevels causing increasingly detailed feedback. If ESPS_VERBOSE is notdefined, a default value of 3 is assumed..PPESPS Common is not processed by \fIpwr\fP if \fIinput\fP is standardinput. Otherwise, provided that the Common file is newer than theparameter file, and provided that the \fIfilename\fP entry in Commonmatches \fIinput\fP, the Common values for \fIstart\fP and \fInan\fPoverride those that may be present in the parameter file..PPThe following items are written into the ESPS Common file provided that \fIoutput\fP is not <stdout>. .IP.I "start \- integer".IPThe starting record from the input file..sp.I "nan \- integer".IPThe number of records in the selected range..sp.I "prog \- string".IPThis is the name of the program .RI ( pwrin this case)..sp.I "filename \- string".IPThe name of the input file \fIinput\fP..SH ESPS HEADERS.PPThe \fIoutput\fP header is a new FEA file header. If the genericheader item \fIsrc_sf\fP exists in the input file, it is copied to theoutput file. The items \fIstart\fP and \fInan\fP are written tocontain the starting record number and number of records processed..PPThe size of the input sampled data field is written to the generic \fIfrmlen\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), adding to it the relative time from the firstrecord in the file to the first record processed, and adding adisplacement corresponding to half of \fIfrmlen\fP. The computationof \fIstart_time\fP depends on the value of the generic header item\fIsrc_sf\fP in the input file (which is assumed to be the samplingrate of the actual data in each field). If this item is not present,\fIstart_time\fP is just copied from the input file to the outputfile..PPAs usual, the command line is added as acomment and the header of \fIinput\fP is added as a source file to\fIoutput\fP. Another comment gives the name of the field added by\fIpwr\fP..SH "FUTURE CHANGES".PPControl over the type of the output power field. .SH "SEE ALSO".PP\fIframe\fP (1\-\s-1ESPS\s+1), FEA (5\-\s-1ESPS\s+1), \fIfea_stats\fP(1\-\s-1ESPS\s+1), .br\fIstats\fP (1\-\s-1ESPS\s+1) .SH "WARNINGS AND DIAGNOSTICS".PP.I pwrwill exit with an error message if any of the following are true: .I inputdoes not exist or is not an ESPS FEA file; the sampled-data field does not exist in.I input;the power field already exists in.I input..SH "BUGS".PPNone known. .SH "AUTHOR".PPManual page by John Shore. Program by Rodney Johnson.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?