its a standard net 2.0 container returning a timeseries with dateTime and
value for each element in the array. You can access data in the container by
index (starting from 0. ie
doubleSeries series = new doubleSeries();
// Get second element
double secondValue = series[1];
//Getting the second to last value
for (int i = 1; i < series.Count; i++) {
double value = series[i];
}
// Get the last value
double lastValue = series.Last;
// Get the first value
double firstValue = series.First;
"Kevin Spencer" wrote:
That all depends on the structure of your "time series" class.
--
HTH,
Kevin Spencer
Microsoft MVP
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"b1uceree" <b1******@discussions.microsoft.comwrote in message
news:BD**********************************@microsof t.com...
Hi,
i need to work out a solution to this:
i have a class that is a time series of (double) numbers and i want to do
the following calculation
for
int x;
i need to perform a calculation which will, starting with the last item
added to the time series perform calculations moving backwards through the
timeseries x items back and return these calculations in a new series of
data
comprising these x items