TimeGeneratorRegularSamplingFromIntervals Method (TimeIntervalCollection, Duration) |
Generates times at regular steps within a set of intervals (not including the edges of the intervals).
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,
Duration step
)
Public Shared Function RegularSamplingFromIntervals (
intervals As TimeIntervalCollection,
step As Duration
) As IList(Of JulianDate)
public:
static IList<JulianDate>^ RegularSamplingFromIntervals(
TimeIntervalCollection^ intervals,
Duration step
)
static member RegularSamplingFromIntervals :
intervals : TimeIntervalCollection *
step : Duration -> IList<JulianDate>
Parameters
- intervals
- Type: AGI.Foundation.TimeTimeIntervalCollection
The collection of intervals in which to generate times. - 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.
If the start date of the interval collection is included
(IsStartIncluded), the first date in the collection will be
the start date of the first interval. If it is not included, the first date in the collection
will be step seconds later. 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