Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley committed Jul 4, 2022
1 parent ef075a2 commit e8d92a7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/Unit/TestTensor.idr
Original file line number Diff line number Diff line change
Expand Up @@ -1085,17 +1085,14 @@ iidKolmogorovSmirnov samples cdf =

covering
uniform : Property
uniform = withTests 10 . property $ do
uniform = withTests 20 . property $ do
bound <- forAll (literal [5] finiteDoubles)
bound' <- forAll (literal [5] finiteDoubles)
key <- forAll (literal [] nats)
seed <- forAll (literal [1] nats)

let bound = fromLiteral bound
bound' = fromLiteral bound'
bound' = select (bound == bound')
(select (bound == fill 0.0) (fill 0.001) (1.1 * bound'))
bound'
key = fromLiteral key
seed = fromLiteral seed
samples = evalState seed (uniform key (broadcast bound) (broadcast bound'))
Expand All @@ -1105,7 +1102,7 @@ uniform = withTests 10 . property $ do

ksTest := iidKolmogorovSmirnov samples uniformCdf

diff (toLiteral ksTest) (<) 0.015
diff (toLiteral ksTest) (<) 0.01

covering
uniformForNonFiniteBounds : Property
Expand Down

0 comments on commit e8d92a7

Please sign in to comment.