stat/distuv: provide complete test coverage for LogNormal distribution
MODIFY
stat/distuv/lognormal_test.go
stat/distuv/lognormal_test.go
@@ -38,6 +38,14 @@ func TestLognormal(t *testing.T) {
checkProbContinuous(t, i, x, 0, math.Inf(1), dist, 1e-10)
checkProbQuantContinuous(t, i, x, dist, tol)
checkMode(t, i, x, dist, 1e-2, 1e-2)
+
+ logProb := dist.LogProb(-0.0001)
+ if !math.IsInf(logProb, -1) {
+ t.Errorf("Expected LogProb == -Inf for x < 0, got %v", logProb)
+ }
+ if dist.NumParameters() != 2 {
+ t.Errorf("Mismatch in NumParameters: got %v, want 2", dist.NumParameters())
+ }
}
}

stat/distuv: provide complete test coverage for LogNormal distribution