5#include <gsl/gsl_spline.h>
7#include <lal/TimeSeries.h>
9#include <lal/Interpolate.h>
17 sample_time->
data[0] = dt*i;
18 for(i=1; i<len; i++) {
19 sample_time->
data[i] = dt*i+drift;
23 double frequency = 20.0 / 2 / 3.14159;
27 for(i=0; i<len; i++) {
28 fcn->
data[i] = sin( sample_time->
data[i] * frequency );
40 REAL8 tolerance = 1e-6;
44 REAL8 fcnval = sin(frequency*t);
47 if (diff > tolerance) {
48 fprintf(stderr,
"%f %g\n", t, diff);
int XLALREAL8TimeSeriesInterpolation(REAL8TimeSeries *ts_in, REAL8Sequence *y_in, REAL8Sequence *t_in, REAL8Sequence *t_out, UINT4 n_data_points, const gsl_interp_type *itrp_type)
double REAL8
Double precision real floating-point number (8 bytes).
REAL8Sequence * XLALCreateREAL8Sequence(size_t length)
REAL8TimeSeries * XLALCreateREAL8TimeSeries(const CHAR *name, const LIGOTimeGPS *epoch, REAL8 f0, REAL8 deltaT, const LALUnit *sampleUnits, size_t length)
const LALUnit lalDimensionlessUnit
dimensionless units
REAL8 XLALGPSGetREAL8(const LIGOTimeGPS *epoch)
Returns the GPS time as a REAL8.
Epoch relative to GPS epoch, see LIGOTimeGPS type for more details.
Time series of REAL8 data, see DATATYPE-TimeSeries types for more details.
REAL8Sequence * data
The sequence of sampled data.
REAL8 deltaT
The time step between samples of the time series in seconds.
LIGOTimeGPS epoch
The start time of the time series.
Vector of type REAL8, see DATATYPE-Vector types for more details.
REAL8 * data
Pointer to the data array.
UINT4 length
Number of elements in array.