Implementation of the ITimeDataSeries<(Of <(T>)>) interface.
| C# | Visual Basic |
public class TimeDataSeries<T> : ITimeDataSeries<T>, IEnumerable<ITimeValueEntry<T>>, IEnumerable
Public Class TimeDataSeries(Of T) _ Implements ITimeDataSeries(Of T), IEnumerable(Of ITimeValueEntry(Of T)), _ IEnumerable
- T
- Type which is contained at each point in the data series.
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| TimeDataSeries<(Of <(T>)>)()()() |
Create an empty time series.
| |
| TimeDataSeries<(Of <(T>)>)(ITimeDataSeries<(Of <(T>)>)) |
Create a copy of an existing time series.
| |
| TimeDataSeries<(Of <(T>)>)(IInterpolateValues<(Of <(T>)>)) |
Create an empty time series using the specified interpolator object.
| |
| Add(DateTime, T) |
Add the value at the specified time. If AllowMultipleAtSameTime is false or if there
is no entry at the specified elapsed time this sets the value at the specified time,
otherwise the value is added to to the end maintaining the time order.
| |
| AllowMultipleAtSameTime |
If true, multiple entries can appear at the same elapsed time, if false only a single
entry will be present at each elapsed time. This is used for GPS routes, where points
may be placed more frequently than once per second, or on a track with no time data.
| |
| Clear()()() |
Clear all entries from the collection.
| |
| Count |
Get the count of items in the data series.
| |
| EntryDateTime(ITimeValueEntry<(Of <(T>)>)) |
Return the DateTime of the specified entry. Shortcut to add StartTime + entry.ElapsedSeconds.
| |
| GetEnumerator()()() |
Get an enumerator to iterate over the contained ITimeValueEntry<(Of <(T>)>) objects.
| |
| GetInterpolatedValue(DateTime) |
Returns a linear interpolated value based on existing data at the specified time.
| |
| GetValueEnumerator()()() |
Returns an enumeration of the values.
| |
| IndexOf(ITimeValueEntry<(Of <(T>)>)) |
Return the index position of the specified entry.
| |
| Item[([(Int32])]) |
Return the value entry at the specified index.
| |
| RemoveAt(Int32) |
Remove the entry at the specified index position.
| |
| SetValueAt(Int32, T) |
Set the value at the specified index position.
| |
| StartTime |
The start time of the data track. If Count is zero this value will be invalid.
| |
| TotalElapsedSeconds |
The total elapsed seconds of the track.
|