public final class CoverageGaps extends Object
Modifier and Type  Method and Description 

static double 
timeAverageGap(CoverageQueryResult coverageIntervals)
The time average length of gaps in coverage, computed as the sum of the square of the
gap lengths all divided by the length of the interval of interest.

static int 
totalNumberOfGaps(CoverageQueryResult coverageIntervals)
Computes the total number of gaps in coverage between the given times.

static int 
totalNumberOfGapsInSpan(CoverageQueryResult coverageIntervals,
double min,
double max)
Computes the total number of gaps which are above a minimum and below a maximum duration.

public static int totalNumberOfGaps(@Nonnull CoverageQueryResult coverageIntervals)
If there are gaps at the beginning or end, these will be included in the total.
coverageIntervals
 The intervals of coverage.ArgumentNullException
 Thrown if coverageIntervals
is public static int totalNumberOfGapsInSpan(@Nonnull CoverageQueryResult coverageIntervals, double min, double max)
If there are gaps at the beginning or end, their duration will be the time between the interval of coverage and the beginning or end of the overall interval.
coverageIntervals
 The intervals of coverage.min
 The minimum duration of a gap (in seconds).max
 The maximum duration of a gap (in seconds).ArgumentNullException
 Thrown if coverageIntervals
is public static double timeAverageGap(@Nonnull CoverageQueryResult coverageIntervals)
coverageIntervals
 The intervals of coverage.ArgumentNullException
 Thrown if coverageIntervals
is