LALInspiral 5.0.3.1-eeff03c
LALPrintTimeseries.c
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Bernd Machenschalk, Duncan Brown, Jolien Creighton
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20#include <stdio.h>
21
22void LALPrintTimeseries (int n, double *signal, double delta, double t0) ;
23void LALPrintTimeseries (int n, double *signal, double delta, double t0)
24{
25 int i=0;
26 FILE *outfile;
27 outfile=fopen("chirp.dat","w");
28
29 do
30 fprintf (outfile, "%e %e\n", i*delta+t0, *(signal+i));
31
32 while (n-++i);
33
34 printf("&\n");
35}
void LALPrintTimeseries(int n, double *signal, double delta, double t0)
static double double delta
#define fprintf
double i
int n
double t0
char * outfile