⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 feaop.1

📁 speech signal process tools
💻 1
📖 第 1 页 / 共 2 页
字号:
(second form), or 1 (third form)..IPThis option may be used at most twice.If used once, it applies to both input files.If used twice, it applies to.I file1.inthe first time and.I file2.inthe second time.If the option is used twice and implies inconsistent values of.I nan,a warning message may be issued.For example .BR \-r " 1" : 10and.BR \-r " 101" : 120in the same.I arropcommand will generate a warning of inconsistent.B \-roptions(unless.B \-Ris in effect).On the other hand two options with one unspecified endpoint, like.BR \-r " 1" :and.BR \-r " 101" : 120,are not considered inconsistent and will not generate the warning.The warnings can be suppressed by the.B \-zoption..TP.BI \-t " output_type"Specifies the type of the output field.Allowable values areDOUBLE, FLOAT, LONG, SHORT, BYTE, (or CHAR), DOUBLE_CPLX, FLOAT_CPLX,LONG_CPLX, SHORT_CPLX, and BYTE_CPLX.The case doesn't matter:  upper is not distinguished from lower.With one exception, the default is the ``cover type'' of the input types;see the DISCUSSION and the.IR cover_type (3\-ESPS)manual page for details.The exception is that when the operation being performed is CPLX,and the input types are both real, the default output type is the complextype corresponding to the ``cover type'' of the input types.Note that if you combine real input fields with a complex gain factor(see.BR \-g ),you will need to specify a nondefault output type with.B \-tto obtain the intended complex result..TP.BI \-x " debug_level \fR[0]\fP"If .I debug_levelis positive,.I feaopprints debugging messages and other informationon the standard error output.The messages proliferate as the  .I debug_levelincreases.If \fIdebug_level\fP is 0 (the default), no messages are printed.  .TP.B \-zSuppress warning messages..TP.B \-IInterchange the operands.Normally, each value from.I file1.in(possibly scaled) is used as the first operand of the operation,with a value from.I file2.inas the second operand.When.B \-Iis used, however, the possibly scaled values from.I file1.inare each used as the second operandwith a value from.I file2.inas the first operand.Thus, if DIV is the operation, this option allows you to divide.I in_field2by.I in_field1instead of the reverse..TP.BI \-O " operation" " \fR[ADD]"Specifies the operation to be performed.The possible operations are those supported by .IR arr_op (3\-ESPSsp)and include ADD, SUB, MUL, DIV, PWR, and CPLX;see the DISCUSSION section and the.I arr_opmanual entry.The case doesn't matter; upper is not distinguished from lower,and "add" (or "aDd") will do as well as "ADD".The default, ADD, specifies addition..TP.BI \-P " param_file \fR[params]\fP"uses the parameter file .I param_filerather than the default, which is "params". .TP.B \-R``Recycle.''If records from.I file1.in(or the subrange specified with.BR \-r )are exhausted before the end of the data from.I file2.in,they are reused cyclically as often as necessary..SH ESPS PARAMETERS.PPThe parameter file does not have to be present,since all the parameters have default values.The following parameters are read, if present, from the parameter file:.TP.I "gain_real \- float".TP.I "gain_imag \- float".IPThe real part and the imaginary part of the gain factor.I gby which values from.I in_field1are multiplied before being used as operands.The defaults are 1 and 0.These parameters are not read if the.B \-goption is used..TP.I "in_field1 \- string".TP.I "in_field2 \- string".IPThe names of the selected data fields in.I file1.inand.I file2.in,respectively.The default for both is "samples".These parameters are not read if the.B \-foption is used..TP.I "nan \- int array" " or " "int".IPThe number of records to process in each input file.This is either a scalar, applying to both files,or a two-element array, giving separate values for the two files.A value of 0, the default for both files, means continue processinguntil the end of the file is reached.If the.B \-Roption is not in effect,and two different non-default.I nanvalues are specified,a warning is given, and the smaller value is used.This parameter is not read if the.B \-roption is used..TP.I "operation \- string".IPThe operation performed.Allowable values include "add", "sub", "mul", "div", "pwr", and "cplx"(case-insensitive).This parameter is not read if the.B \-Ooption is used.The default, "add" performs addition..TP.I "out_field \- string".IPThe name of the output field in which the results are stored.The default is as described for the.B \-foption.This parameter is not read if.B \-fis used three times..TP.I "output_type \- string".IPThe data type of the output field,.I out_field.Allowable values aredouble, float, long, short, byte (or char), double_cplx, float_cplx,long_cplx, short_cplx, and byte_cplx (case insensitive).The default depends on the input types; see.BR \-t ,the DISCUSSION, and the.IR cover_type (3\-ESPS)manual page for details.The parameter is not read if the.B \-toption is used..TP.IR "start \- int array" " or " "int".IPEither a two-element array,containing the starting record numbers in the input files,or a scalar, applying to both input files.The default is {1, 1}, meaning the beginning of each file.This parameter is not read if the.B \-roption is used..SH ESPS COMMON.PPThe ESPS Common file is not read..PPIf Common processing is enabled,and the output file is not standard output,the program writes the Common parameters.I prog,.I filename,.I start,and.I nanto record the program's name, the name of the output file,the starting record number of the output file (always 1),and the number of points in the output file..PPESPS Common processing may be disabledby setting the environment variable USE_ESPS_COMMON to.I off.The default ESPS Common file is.I espscomin the user's home directory.This may be overriddenby setting the environment variable ESPSCOM to the desired path.User feedback of Common processing is determinedby the environment variable ESPS_VERBOSE, with 0 causing no feedbackand increasing levels causing increasingly detailed feedback.If ESPS_VERBOSE is not defined, a default value of 3 is assumed..SH ESPS HEADERS.PPThe header of.I file.outis a copy of the header of.I file2.in,including all generic header items.The generic header item.I start_timeis written (or rewritten) with a value computed by taking the.I start_timefrom the header of.I file2.in(or zero, if the item doesn't exist)and adding to it the relative time from the first recordin that file to the first record processed.The computation of.I start_timedepends on the value of the generic header item.I record_freqin.I file2.in.If that item isn't present,.I start_timeis just copied from.I file2.into.I file.out.The items.I startand.I nanare written (or rewritten) to contain the starting record numberand number of records to be processed in.I file2.in(with.IR nan " = 0"implying all records from.I startup to the end of the file).  Items.I start1and.I nan1record the same information for.I file1.in.Generic header items are added for the.I operation,.I gain_real,.I gain_imag,.I in_field1,.I in_field2,and.I out_fieldparameters.As usual, the command line is added as a comment,and the headers of the input files are added as source files to the output..SH FUTURE CHANGES.PPAn option may be added to allow.I file1.into be omitted and a single constant operand to be specified instead.The conformability requirements on the two input fieldsmay be made more flexible.Any additions to the list of operations accepted by.IR arr_op (3\-ESPS)will be reflected in this program..SH EXAMPLES.PP.SH ERRORS AND DIAGNOSTICS.PPIf an unknown option is specified, if.B \-fis used more than three times, if.B \-ris used more than twice,or if the number of file names is wrong,.I feaopprints a synopsis of command-line usage and exits..PPThe program exits with an error message if any of the following are true:an unknown operation name is specified;an input file does not exist or is not an ESPS FEA file;both input file names are "\-";an input file name is the same as the output name (but not "\-");an input field does not exist in the respective file;the input fields have different numbers of elements;the output type is not known or nonnumeric;a bad range is specified with.B \-r..PPThe program issues a warning and continuesif the files do not have the same value of the header item.I record_freq.(For sampled-data files, that means that the sampling frequencies mismatch.)It also warns ifan explicit output field (that is, one not specified with.BR \-f \-)already exists in.I file2.in,if the input fields have different ranks or dimensions(but the same number of elements), if two.B \-roptions specify inconsistent ranges (see the discussion of.BR \-r ),or if an input file ends before a specified endpoint..SH BUGS.PPNone known..SH REFERENCES.PP.SH "SEE ALSO".PP.IR addsd (1\-ESPS),.IR feafunc (1\-ESPS),.IR multsd (1\-ESPS),.IR mux (1\-ESPS)..IR select (1\-ESPS),.IR arr_op (3\-ESPS),.IR cover_type (3\-ESPS),.IR type_convert (3\-ESPS).IR FEA_SPEC (5-ESPS).SH AUTHOR.PPRod Johnson

⌨️ 快捷键说明

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