I have a collection in C# like this:
Collection<double> temp = new Collection<double>();
and I need to calculate the maximum, minimum and average value in the collection from a certain index to the end of the collection. For example, from the 10th item to the last item in the collection.
I use temp.Max();
, temp.Min();
and temp.Average();
to calculate those values in the entire collection but I don't know how to do that for certain values in the collection.
Many thanks for your help!