mirror of
https://github.com/gonum/gonum.git
synced 2025-10-08 08:30:14 +08:00
24 lines
373 B
Go
24 lines
373 B
Go
// Copyright ©2016 The Gonum Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package distuv
|
|
|
|
import "testing"
|
|
|
|
func TestBernoulli(t *testing.T) {
|
|
for i, dist := range []Bernoulli{
|
|
{
|
|
P: 0.5,
|
|
},
|
|
{
|
|
P: 0.9,
|
|
},
|
|
{
|
|
P: 0.2,
|
|
},
|
|
} {
|
|
testFullDist(t, dist, i, false)
|
|
}
|
|
}
|