Hello,
I've got a sortedDict = new SortedDictionary<double,double>();
And I'm trying to get the Key of the Value that is greater than the three Values above and three Values below but I don't know how.
sortedDict looks like this:
{
1.10 , 20
1.09 , 75
1.08 , 32
1.07 , 440 ------> This Value is greater than the Values of 3keys above and below
1.06 , 200
1.05 , 160
1.04 , 130
1.03 , 250 ------> This Value is greater than the Values of 3keys above and below
1.02 , 62
1.01 , 73
1.00 , 15
}
Output: (How do I get this?)
1.07
1.03
Any help will be greatly appreciated.
I've got a sortedDict = new SortedDictionary<double,double>();
And I'm trying to get the Key of the Value that is greater than the three Values above and three Values below but I don't know how.
sortedDict looks like this:
{
1.10 , 20
1.09 , 75
1.08 , 32
1.07 , 440 ------> This Value is greater than the Values of 3keys above and below
1.06 , 200
1.05 , 160
1.04 , 130
1.03 , 250 ------> This Value is greater than the Values of 3keys above and below
1.02 , 62
1.01 , 73
1.00 , 15
}
Output: (How do I get this?)
1.07
1.03
Any help will be greatly appreciated.
Last edited: