ГОСТ Р ИСО/МЭК 10373-6—2015
/•Envelope reconstructLon Ls done by Mils function»/
ini EnvelopeReconstructlon(void);
/•Hilbert mein function*/
void hllbert(char »fпотер);
♦endIf /* HILBERT_H_ */
E.9.5hilbert.c
/ * • * • * • * • * • * • * • * * * * * * • • * » *‘ ‘ » * * * • * •*/
/ * **This program extract, the envelope оl modulated carrier * * */
/ * •*Input: * * * /
/ * **File In text format containing a tableof two columns * * */
/ * **(time and test PCD output voltage vd)* * •/
/ * * ** * * /
f *
/ * • * Data format Of input-file:
* *
*
*
*
•
*
* /
f
/ * ** Onedata-polnt per line,
/ * * *
* *
* *
*/
* /
f *
*
** (time(seconds|, sense-coll-voltage(volts])* * */
/ **
* * * /
/ * **Date-points shall be equidistant time* * */
/ * *»Minimum sampling rate: 100 MSampies/second» * »/
/ * * * example for spreadsheet file (start in next line): * • * /
/ * **(time) , (voltage )* * */
/ * **З.ОООООе-Об,1.00* * * /
/ * **3.00200e-06,1.01» * * /
/ » • •* » * ^
/ * **Run:* » */
/ * **hiinert Fllename.txt• * */
/•••or* **/
/ *
*
•
*
*
*
hilbert (default file name input.txt) • • • /
/ ** * ^
/•hilbert.c*/
/•Main program*/
/•• * * * * * * * * * * * •* * * • * * » * *** *** *••* *••** *** ** •** ••** ••**••* *••* *••** •/
♦ Include <stdio.h>
♦ include <.math.Ji>
♦ include <malloc.h>
♦ include <ctype.h>
♦ include <string.h>
♦ include “fftrm.h"’
♦define MAX_POINT 200000
♦ifndef M_PI
♦define M_PI 3.141Ь926ЬЗЬ89У93236462643383279b
♦endtf
liildebug-0;
int fftdebug-0;
double *Gvalue;
double *Gtime;
double *Gr;
double *Gi;
double »Gc;
doublecomplex *Gt_ifft.;
/•File containing the input data*/
55