Skip to content

Commit

Permalink
修复了周期检测未能正确复制Q导致的检测不通过
Browse files Browse the repository at this point in the history
  • Loading branch information
Trisia committed Aug 17, 2023
1 parent 0e314dd commit c4303bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func PeriodDetect(source io.Reader) (bool, error) {
}
resArr := Round12(buf)
for idx, result := range resArr {
distributions[idx][i] = result.Q
if result.Pass {
counters[idx]++
}
Expand Down Expand Up @@ -157,7 +158,6 @@ func Threshold(s int) int {
}

// ThresholdQ 样本分布均匀性 (k=10)
//
func ThresholdQ(qValues []float64) float64 {
var dist [10]int
for _, q := range qValues {
Expand Down

0 comments on commit c4303bf

Please sign in to comment.