Click or drag to resize

TimeGeneratorRegularSamplingFromIntervals Method (TimeIntervalCollection, JulianDate, Duration)

Generates times at regular steps within an interval (not including the end time).

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static IList<JulianDate> RegularSamplingFromIntervals(
	TimeIntervalCollection intervals,
	JulianDate startOfSampling,
	Duration step
)

Parameters

intervals
Type: AGI.Foundation.TimeTimeIntervalCollection
The intervals in which to generate times.
startOfSampling
Type: AGI.Foundation.TimeJulianDate
The time at which to start sampling. If this time is prior to the given sampling intervals, samples will begin inside the intervals.
step
Type: AGI.Foundation.TimeDuration
The step between times.

Return Value

Type: IListJulianDate
A collection of times within the interval.
Remarks

Times in the collection are generated as they are requested, so the returned collection uses a negligible amount of memory even when representing times over a large interval with a small step.

The first date in the collection will be the first sample at or after startOfSampling which is contained in the intervals. Only samples which are regular steps from the start of sampling and which are contained in intervals are included. If no samples fall within the intervals, the list is empty.

See Also