public class TimeSampledValues extends Object
| Modifier and Type | Method and Description |
|---|---|
static TimeSampledValues |
computeData(CoverageData coverage,
TimeInterval interval,
Duration step,
Scalar figureOfMerit)
Compute the figure of merit data for the given set of results.
|
static TimeSampledValues |
computeData(TimeIntervalCollection intervals,
TimeInterval samplingInterval,
Duration step,
Scalar function)
Compute the figure of merit data for the given set of results.
|
double |
computeMaximum()
Computes the maximum value over the computed timespan
|
double |
computeMinimum()
Computes the minimum value over the computed timespan
|
List<Double> |
getData()
Gets the list of data for this grid point.
|
double |
getData(JulianDate time)
Get the data for a given sample time from
SampleTimes (get). |
List<JulianDate> |
getSampleTimes()
Gets the list of times corresponding to the
Data (get) values. |
public static TimeSampledValues computeData(@Nonnull CoverageData coverage, @Nonnull TimeInterval interval, @Nonnull Duration step, Scalar figureOfMerit)
coverage - The set of coverage results for a single grid point.interval - The sampling interval.step - The step size for sampling.figureOfMerit - The definition of the time-dynamic figure of merit to compute.public static TimeSampledValues computeData(@Nonnull TimeIntervalCollection intervals, @Nonnull TimeInterval samplingInterval, @Nonnull Duration step, @Nonnull Scalar function)
intervals - The set of intervals over which to sample.samplingInterval - The reference time period defining the regularized sampling.step - The step size for sampling.function - The time-dynamic scalar function to compute.public final double getData(@Nonnull JulianDate time)
SampleTimes (get).time - The time to get.IllegalStateException - Thrown if the time does not correspond with one of
the sample times in SampleTimes (get).public final List<Double> getData()
If there is more than one interval in SatisfactionIntervals (get / set) of the CoverageQueryResult,
there may be 'gaps' in the times between values. To see this, look at the SampleTimes (get) to
check the times for each value or use TimeSampledValues.getData(agi.foundation.time.JulianDate) to find data at a specific time.
public final List<JulianDate> getSampleTimes()
Data (get) values.public final double computeMinimum()
Data (get).IllegalStateException - Thrown when Data (get) is empty.public final double computeMaximum()
Data (get).IllegalStateException - Thrown when Data (get) is empty.