diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-06-13 20:30:13 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-06-14 08:29:50 +0000 |
| commit | 286c38bd1ae34870c40986e8ddebfd65d6e5049e (patch) | |
| tree | 6d183001c80bf66a4f079a3399e6d140480b36ca /pkg/stats/pvalue.go | |
| parent | a9616ff57d4ef2794b54e02c26315c739ca8bc85 (diff) | |
pkg/stats: split out pkg/stats/sample
This will reduce the number of dependencies needed for the main
syzkaller tools.
Diffstat (limited to 'pkg/stats/pvalue.go')
| -rw-r--r-- | pkg/stats/pvalue.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/pkg/stats/pvalue.go b/pkg/stats/pvalue.go deleted file mode 100644 index 9f413f5aa..000000000 --- a/pkg/stats/pvalue.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2021 syzkaller project authors. All rights reserved. -// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. - -package stats - -// TODO: I didn't find the substitution as of Feb 2023. Let's keep it as is while it works. -import "golang.org/x/perf/benchstat" // nolint:all - -// Mann-Whitney U test. -func UTest(old, new *Sample) (pval float64, err error) { - // Unfortunately we cannot just invoke MannWhitneyUTest from x/perf/benchstat/internal/stats, - // so we first wrap the data in Metrics. - mOld := benchstat.Metrics{ - RValues: old.Xs, - } - mNew := benchstat.Metrics{ - RValues: new.Xs, - } - return benchstat.UTest(&mOld, &mNew) -} |
