感觉写的很麻烦
var a = from g in ResultPointsGroup
select (
(
from gg in g
select gg.OutputValue + slope * (gg.SetValue - gg.InputValue)).Max() - (
from gg in g
select gg.OutputValue + slope * (gg.SetValue - gg.InputValue)).Min()
);
ResultPointsGroup
.select(a=>
a.max(n=>n.OutputValue + slope * (n.SetValue - n.InputValue))-a.min(n=>n.OutputValue + slope * (n.SetValue - n.InputValue)
})
10分100分都是满分