testsd.1

来自「speech signal process tools」· 1 代码 · 共 459 行 · 第 1/2 页

1
459
字号
contain .I length points.   This option is not allowed if .B \-a is specified.  .TP.BI \-s " length"Specifies that .I sdfilecontain .I lengthseconds of sampled data.   This option is not allowed if .B \-a is specified.  .TP.BI \-a " asciifile"Specifies that the sampled data is to be taken from the input ASCIIfile .I asciifile.  Numbers in .I asciifilemay be integer or real, with numbers separated by white space or new lines.  .TP.BI \-S " seed \fR[1234567]\fP"Specifies the starting seed for the random number generator (relevantif Gaussian noise is being generated)..TP.BI \-t " data_type \fR[float]\fP"Specifies the output data type.  Possible values are all of thesupported FEA types.  In particular, possible values for real typesare DOUBLE, FLOAT, LONG, SHORT, and BYTE, (signed CHAR); possiblevalues for complex types are DOUBLE_CPLX, FLOAT_CPLX, LONG_CPLX,SHORT_CPLX, and BYTE_CPLX.  The values can be given in upper or lowercase as arguments to the \fB-t\fP option.  For convenience, a complexoutput type can be specified by giving the corresponding real type inthe \fB-t\fP option and at the same time specifying the \fB-c\fPoption.  .IPIf a complex output type is specified, the handling of the imaginarypart depends on the signal type.  For SINE, complex exponentials aregenerated (as described above).  For SQUARE, TRIANGLE, SAWTOOTH,PULSES, and CONSTANT, the real and imaginary parts areidentical.  For noise types (GAUSS and UNIFORM), independent noise isgenerated for the real and imaginary parts.  For ASCII input, it is assumed that the real and imaginary parts alternate in the input, withthe first value being real..TP .BI \-cSpecifies that a complex FEA_SD file is to be generated.  If usedtogether with the \fB-a\fP option, it is assumed that the real andimaginary parts alternate in the ASCII input.  If used in conjunction with a specified real output type (e.g., \fB-t\fP long), the output is set to the corresponding complex type (e.g., long_cplx).  Thisoption is ignored if a complex type is specified by other means (e.g.,\fB-t\fP long_cplx).  .TP.BI \-iSpecifies that the data type in .I sdfileis a SHORT (or SHORT_CPLX if \fB-c\fP is used).  This option isprovided for compatibility with previous versions (in which FLOAT wasthe default type), and should be avoided.  If used, it will overrideother type specifications..SH "ESPS PARAMETERS".PPThe parameter file is not required to be present, as there are defaultparameter values that apply.  The defaults are those mentioned underOPTIONS.  If the parameter file does exist, the following parameters areread:.IP.I "signal_type - char *".IPA string giving the type of test data as discussed under \fB\-T\fP.  Thisparameter is not read if the \fB\-T\fP option is used..IP.I "freq - double".IPThe \fIfrequency\fP as discussed under \fB\-f\fP.  This parameter isread only in the case of periodic signals. It is not read if the\fB\-f\fP option is used..IP.I "phase - double".IPThe phase of real sine waves or complex exponentials.  This parameteris read only in the case of periodic signals.  It is not read if the\fB\-A\fP option is used..IP.I "samp_rate - int".IPThe sampling rate.  This parameter is not read if the \fB\-r\fP optionis used..IP.I "level - double".IPThe \fIlevel\fP as discussed under \fB\-l\fP.  This parameter is notread if the \fB\-l\fP option is used..IP.I "sweep_rate - double".IPThe \fIsweep_rate\fP as discussed under \fB-C\fP.  This is read onlyfor periodic signals.  It is not read if the \fB-C\fPoption is used..IP.I "decay_time - double"The \fIdecay_time\fP as discussed under \fB-d\fP.  This is read only for periodic signals.  It is not read if the \fB-d\fP option is used.  .IP.I "length - int".IPThe number of points to generate \- the \fIlength\fP as discussedunder \fB\-p\fP.  This parameter is not read if the \fB\-p\fP optionis used..IP.I "seed - int".IPThe \fIseed\fP as discussed under \fB\-S\fP.  This parameter is onlyread only in the case of noise signals (GAUSS, UNIFORM).  It is notread if the \fB\-S\fP option is used..IP.I "ascii_file - char *".IPThe name of the ASCII file containing input data.  This parameter is read only if \fIsignal_type\fP is ASCII and the \fB-a\fP option is not used.  .IP.I "data_type - char *".IPThe name of the desired output data type.  The parameter is not readif the \fB-t\fP, \fB-c\fP, or \fB-i\fP options are is used..PPThe values of parameters obtained from the parameter file are printedif the environment variable ESPS_VERBOSE is 3 or greater.  The defaultvalue is 3..SH "ESPS COMMON".PPESPS Common is not read by .I testsd. If Common processing is enabled and if the output is not to standardoutput, then.I testsdwrites the following values into ESPS Common: .RS 5\fI.nffilename = sdfileprog = \fR"testsd"\fPstart = \fR1\fPnan = \fR<total number of points generated>\fP.fi\fR.RE.PPESPS Common processing may be disabled by setting the environment variableUSE_ESPS_COMMON to "off".  The default ESPS Common file is .espscom in the user's home directory.  This may be overridden by settingthe environment variable ESPSCOM to the desired path.  User feedback ofCommon processing is determined by the environment variable ESPS_VERBOSE,with 0 causing no feedback and increasing levels causing increasinglydetailed feedback.  If ESPS_VERBOSE is not defined, a default value of 3 isassumed..SH ESPS HEADERS.PP\fITestsd\fP writes the usual FEA_SD header items.  Unless ASCII datais being converted, "max_value" is set to a maximum possible value(e.g., \fIlevel\fP in the case of sine waves), rather than to theactual maximum (which might be less); note that in the case of complexdata types, the item "max_value" is the complex modulus.  If the typeis ASCII, then the actual maximum value is put into the header..PPIf the type is not ASCII, then.I testsdwrites the .I levelto the generic header item "level".  .I Testsd also writes the generic header item "signal_type", which identifiesthe type of test data (SINE, GAUSS, PULSES, ASCII, etc. ).  If the type is GAUSS or UNIFORM, then .I testsdwrites the random number seed to the generic header item "seed".  If the type is SINE, SQUARE, TRIANGLE, SAWTOOTH, or PULSES, then .I testsd writes the .I frequencyto the generic header item "frequency", and the \fIphase\fP to the item"phase".  If a \fIdecay_time\fP  or \fIsweep_rate\fP is used, thevalue is written to a generic header item of the same name.  .SH "FUTURE CHANGES".PPAdditional types of test data will be generated.  .SH "SEE ALSO".nfESPS(5\-\s-1ESPS\s+1), FEA_SD(5\-\s-1ESPS\s+1), addsd(1\-\s-1ESPS\s+1),\fIatoarray\fP(3\-\s-1ESPSu\s+1), \fIfeafunc\fP(1\-\s-1ESPS\s+1) \fIgauss\fP(3\-\s-1ESPSsp\s+1).fi.SH "WARNINGS AND DIAGNOSTICS".PP.I Testsdwill exit with appropriate messages if .B \-pand.B \-sare both used, if .B \-fis used with .BR \-T gauss,if .B \-a is used with .B \-T,and if .B \-a is used with either .B \-por.B \-s..SH "BUGS".PPNone known.  .SH "REFERENCES".PP.SH "AUTHOR".PPProgram and manual page by John Shore

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?