00001 /* 00002 * Copyright (C) 2007 Bernd Machenschalk, Duncan Brown, Jolien Creighton 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with with program; see the file COPYING. If not, write to the 00016 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00017 * MA 02111-1307 USA 00018 */ 00019 00020 #include <stdio.h> 00021 00022 #include <lal/LALRCSID.h> 00023 NRCSID (LALPRINTTIMESERIESC,"$Id: LALPrintTimeseries.c,v 1.7 2007/06/08 14:41:49 bema Exp $"); 00024 00025 void LALPrintTimeseries (int n, double *signal, double delta, double t0) ; 00026 void LALPrintTimeseries (int n, double *signal, double delta, double t0) 00027 { 00028 int i=0; 00029 FILE *outfile; 00030 outfile=fopen("chirp.dat","w"); 00031 00032 do 00033 fprintf (outfile, "%e %e\n", i*delta+t0, *(signal+i)); 00034 00035 while (n-++i); 00036 00037 printf("&\n"); 00038 }
1.5.2