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

📄 ms_genfactmult.3

📁 C编写的格式转换程序
💻 3
字号:
.TH MS_GENFACTMULT 3 2004/11/22 "Libmseed API".SH DESCRIPTIONGenerate SEED sample rate factor and multiplier.SH SYNOPSIS.nf.B #include <libmseed.h>.BI "int  \fBms_genfactmult\fP ( double " samprate ", int16_t *" factor ",.BI "                      int16_t *" multiplier " );".BI "int  \fBms_ratapprox\fP ( double " real ", int *" num ", int *" den ",.BI "                    int " maxval ", double " precision " );".fi.SH DESCRIPTION\fBms_genfactmult\fP generates an appropriate SEED sample rate\fIfactor\fP and \fImultiplier\fP pair from a double precision samplerate (\fIsamprate\fP).  The factor and multiplier are cast as int16_tbecause that is the integer size needed for the fixed section of theSEED data header.If the input sample rate is already integer (within 0.000001) it willbe placed into the factor and the multiplier will be set to 1.An error will be produced if the sample rate is very high (> 32727) ornegative.\fBms_ratapprox\fP finds an approximate rational number for a realthrough continued fraction expansion.  Given a double precision\fIreal\fP the routine tries to find a rational in numerator(\fInum\fP) and denominator (\fIden\fP) form whose absolute values arenot larger than \fImaxval\fP while trying to reach a specified\fIprecision\fP..SH RETURN VALUES\fBms_genfactmult\fP returns 0 on success and -1 on error.\fBms_ratapprox\fP returns the number of iterations performed..SH AUTHOR.nfChad TrabantIRIS Data Management Center.fi

⌨️ 快捷键说明

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