This commit is contained in:
parent
bb2c18fa4b
commit
4caefe3025
|
@ -3656,7 +3656,7 @@ func (s *Service) ApiCreateRavenIQTest(ctx *gin.Context, req *Raven_IQ_testproto
|
||||||
|
|
||||||
// 计算智商
|
// 计算智商
|
||||||
totalScoreLowerBound := list[scoreBlockIdx]
|
totalScoreLowerBound := list[scoreBlockIdx]
|
||||||
totalScoreUpperBound := list[scoreBlockIdx+1]
|
totalScoreUpperBound := list[scoreBlockIdx+1] - 1
|
||||||
IQLowerBound := float64(IQResultMpcfg.Map[IQBlockId].IQLowerBound)
|
IQLowerBound := float64(IQResultMpcfg.Map[IQBlockId].IQLowerBound)
|
||||||
IQUpperBound := float64(IQResultMpcfg.Map[IQBlockId].IQUpperBound)
|
IQUpperBound := float64(IQResultMpcfg.Map[IQBlockId].IQUpperBound)
|
||||||
IQ := int64(math.Ceil(float64(totalScore-totalScoreLowerBound)/float64(totalScoreUpperBound-totalScoreLowerBound)*(IQUpperBound-IQLowerBound) + IQLowerBound))
|
IQ := int64(math.Ceil(float64(totalScore-totalScoreLowerBound)/float64(totalScoreUpperBound-totalScoreLowerBound)*(IQUpperBound-IQLowerBound) + IQLowerBound))
|
||||||
|
|
Loading…
Reference in New Issue