|
@@ -1071,18 +1071,12 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
resultSum.Add(data.Sum());
|
|
|
}
|
|
|
//确定高分组 最低分数
|
|
|
- double rhw = 0;
|
|
|
- double rhl = 0;
|
|
|
- int rhwCount = 0;
|
|
|
- int rhlCount = 0;
|
|
|
- if (resultSum.Count >= 20) {
|
|
|
- resultSum.Sort((s1, s2) => { return s2.CompareTo(s1); });
|
|
|
- rhwCount = Convert.ToInt32(Math.Floor(resultSum.Count * 0.27));
|
|
|
- rhw = rhwCount > 0 ? resultSum[rhwCount] : 0;
|
|
|
- rhlCount = Convert.ToInt32(Math.Ceiling(resultSum.Count * 0.73));
|
|
|
- rhl = rhlCount > 0 ? resultSum[rhlCount] : 0;
|
|
|
- }
|
|
|
-
|
|
|
+ resultSum.Sort((s1, s2) => { return s2.CompareTo(s1); });
|
|
|
+ int rhwCount = Convert.ToInt32(Math.Floor(resultSum.Count * 0.27));
|
|
|
+ double rhw = rhwCount > 0 ? resultSum[rhwCount] : 0;
|
|
|
+ int rhlCount = Convert.ToInt32(Math.Ceiling(resultSum.Count * 0.73));
|
|
|
+ double rhl = rhlCount > 0 ? resultSum[rhlCount - 1] : 0;
|
|
|
+
|
|
|
|
|
|
|
|
|
List<string> knowledgeName = new List<string>();
|
|
@@ -1299,18 +1293,11 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
resultSum.Add(data.Sum());
|
|
|
}
|
|
|
//确定高分组 最低分数
|
|
|
- double rhw = 0;
|
|
|
- double rhl = 0;
|
|
|
- int rhwCount = 0;
|
|
|
- int rhlCount = 0;
|
|
|
- if (resultSum.Count >= 20)
|
|
|
- {
|
|
|
resultSum.Sort((s1, s2) => { return s2.CompareTo(s1); });
|
|
|
- rhwCount = Convert.ToInt32(Math.Floor(resultSum.Count * 0.27));
|
|
|
- rhw = rhwCount > 0 ? resultSum[rhwCount] : 0;
|
|
|
- rhlCount = Convert.ToInt32(Math.Ceiling(resultSum.Count * 0.73));
|
|
|
- rhl = rhlCount > 0 ? resultSum[rhlCount] : 0;
|
|
|
- }
|
|
|
+ int rhwCount = Convert.ToInt32(Math.Floor(resultSum.Count * 0.27));
|
|
|
+ double rhw = rhwCount > 0 ? resultSum[rhwCount] : 0;
|
|
|
+ int rhlCount = Convert.ToInt32(Math.Ceiling(resultSum.Count * 0.73));
|
|
|
+ double rhl = rhlCount > 0 ? resultSum[rhlCount-1] : 0;
|
|
|
|
|
|
//初始化年级总分
|
|
|
double total = 0;
|