aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-testbed/table.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-06-13 20:30:13 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-06-14 08:29:50 +0000
commit286c38bd1ae34870c40986e8ddebfd65d6e5049e (patch)
tree6d183001c80bf66a4f079a3399e6d140480b36ca /tools/syz-testbed/table.go
parenta9616ff57d4ef2794b54e02c26315c739ca8bc85 (diff)
pkg/stats: split out pkg/stats/sample
This will reduce the number of dependencies needed for the main syzkaller tools.
Diffstat (limited to 'tools/syz-testbed/table.go')
-rw-r--r--tools/syz-testbed/table.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/syz-testbed/table.go b/tools/syz-testbed/table.go
index ee3ffd0e7..fae3e2279 100644
--- a/tools/syz-testbed/table.go
+++ b/tools/syz-testbed/table.go
@@ -10,7 +10,7 @@ import (
"os"
"sort"
- "github.com/google/syzkaller/pkg/stats"
+ "github.com/google/syzkaller/pkg/stats/sample"
)
type Cell = interface{}
@@ -25,7 +25,7 @@ type Table struct {
type ValueCell struct {
Value float64
- Sample *stats.Sample
+ Sample *sample.Sample
PercentChange *float64
PValue *float64
}
@@ -39,7 +39,7 @@ type BoolCell struct {
Value bool
}
-func NewValueCell(sample *stats.Sample) *ValueCell {
+func NewValueCell(sample *sample.Sample) *ValueCell {
return &ValueCell{Value: sample.Median(), Sample: sample}
}
@@ -183,7 +183,7 @@ func (t *Table) SetRelativeValues(baseColumn string) error {
}
cellSample := valueCell.Sample.RemoveOutliers()
- pval, err := stats.UTest(baseSample, cellSample)
+ pval, err := sample.UTest(baseSample, cellSample)
if err == nil {
// Sometimes it fails because there are too few samples.
valueCell.PValue = new(float64)