mirror of
https://github.com/gonum/gonum.git
synced 2025-10-22 06:39:26 +08:00
add test fixture for Quantile when p is NaN
This commit is contained in:
@@ -1106,7 +1106,11 @@ func TestQuantile(t *testing.T) {
|
|||||||
c: Empirical,
|
c: Empirical,
|
||||||
p: 2,
|
p: 2,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "p is NaN",
|
||||||
|
c: Empirical,
|
||||||
|
p: math.NaN(),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "len(x) != len(weights)",
|
name: "len(x) != len(weights)",
|
||||||
c: Empirical,
|
c: Empirical,
|
||||||
|
Reference in New Issue
Block a user