using Altaxo; ... TimeSeriesseries = new TimeSeries (DateTime.Now); series.AddValue(5.4); series.AddValue(6.2); series.AddValue(7.9);
using Altaxo; ... TimeSeriesIn this example, a new `TimeSeries` object is also created, but in this case the values are date-time objects associated with numerical values. A new point with the current data and a value of 5.4 is added, followed by two more values that are 5 minutes and 10 minutes ahead of the current time. The package library for this code is likely the Altaxo package library, which provides classes and methods for working with time series data in C#.series = new TimeSeries (DateTime.Now); series.AddValue(DateTime.Now, 5.4); series.AddValue(DateTime.Now.AddMinutes(5), 6.2); series.AddValue(DateTime.Now.AddMinutes(10), 7.9);