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.3.420.0 (24.3.420.0)
Syntax public static IList<JulianDate> RegularSamplingFromIntervals(
TimeIntervalCollection intervals,
JulianDate startOfSampling,
Duration step
)
Public Shared Function RegularSamplingFromIntervals (
intervals As TimeIntervalCollection,
startOfSampling As JulianDate,
step As Duration
) As IList(Of JulianDate)
public:
static IList<JulianDate>^ RegularSamplingFromIntervals(
TimeIntervalCollection^ intervals,
JulianDate startOfSampling,
Duration step
)
static member RegularSamplingFromIntervals :
intervals : TimeIntervalCollection *
startOfSampling : JulianDate *
step : Duration -> IList<JulianDate>
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:
IListJulianDateA 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