LALApps 10.1.0.1-eeff03c
Inject.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Jolien Creighton, Teviet Creighton, John Whelan
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#ifndef _INJECT_H
21#define _INJECT_H
22
23#include <lal/LALStdlib.h>
24
25#if defined(__cplusplus)
26extern "C" {
27#elif 0
28} /* so that editors will match preceding brace */
29#endif
30
31/**
32 * \defgroup Inject_h Header Inject.h
33 * \ingroup lal_inject
34 * \author Creighton, T. D.
35 *
36 * \brief Provides routines to inject a signal into detector output.
37 *
38 * ### Synopsis ###
39 *
40 * \code
41 * #include <lal/Inject.h>
42 * \endcode
43 *
44 * This header also provides simple routines for injecting a signal
45 * into floating-point data, without dithering. These should only be
46 * used when the data is genuinely continuous in character. This can
47 * include data derived by applying floating-point operations on ADC
48 * channels (e.g.\ digital filters, linear combinations of channels,
49 * etc.), but not data that simply represents ADC output in
50 * floating-point format. The assumption here is that the numerical
51 * post-processing of the ADC data completely masks any statistical
52 * signiatures of the digitization.
53 *
54 * @{
55 * \defgroup InjectTimeSeries_c Module InjectTimeSeries.c
56 * @}
57 */
58/** @{ */
59
60/** \name Error Codes */
61/** @{ */
62#define INJECTH_ENUL 1 /**< Unexpected null pointer in arguments. */
63#define INJECTH_EBAD 2 /**< A sampling interval is (effectively) zero */
64#define INJECTH_EUNIT 3 /**< Input or output is not in units of ADC counts */
65/** @} */
66/** @} */
67
68#define INJECTH_MSGENUL "Unexpected null pointer in arguments"
69#define INJECTH_MSGEBAD "A sampling interval is (effectively) zero"
70#define INJECTH_MSGEUNIT "Input or output is not in units of ADC counts"
71
72/* Function prototypes. */
73
74void
77 REAL4TimeSeries *signalvec );
78
79#if 0
80{ /* so that editors will match succeeding brace */
81#elif defined(__cplusplus)
82}
83#endif
84
85#endif /* _INJECT_H */
void LALSSInjectTimeSeries(LALStatus *, REAL4TimeSeries *output, REAL4TimeSeries *signalvec)
int output(const char *outfile, int outtype, REAL4TimeSeries *series)
Definition: view.c:603