23#include <lal/LIGOMetadataTables.h>
24#include <lal/SnglBurstUtils.h>
25#include <lal/XLALError.h>
35 for(length = 0; head; head = head->
next)
66 for(
i = 0, event = *head; event;
event =
event->
next)
70 qsort(array, length,
sizeof(*array), (
int(*)(
const void *,
const void *)) comparefunc);
74 for(
i = 0;
i < length;
i++, next = &(*next)->
next)
98 float snra = (*a)->snr;
99 float snrb = (*b)->snr;
int XLALSnglBurstTableLength(SnglBurst *head)
Compute the length of a linked list of SnglBurst objects.
int XLALCompareSnglBurstByPeakTimeAndSNR(const SnglBurst *const *a, const SnglBurst *const *b)
Compare the peak times and SNRs of two SnglBurst events.
SnglBurst ** XLALSortSnglBurst(SnglBurst **head, int(*comparefunc)(const SnglBurst *const *, const SnglBurst *const *))
Sort a list of SnglBurst events into increasing order according to the supplied comparison function.
void * XLALCalloc(size_t m, size_t n)
#define XLAL_ERROR_NULL(...)
INT8 XLALGPSToINT8NS(const LIGOTimeGPS *epoch)
struct tagSnglBurst * next