MUD.hs/test/TestMUD.hs
Michael Pilosov 32cdc46325 working code
2024-05-18 01:52:08 +00:00

18 lines
378 B
Haskell

-- TestMUD.hs
module TestMUD (tests) where
import MUD (updated, getPF)
import RandomUtils (generateUniformPoints)
tests :: IO ()
tests = do
-- Example of Updated density
let grdpoints = [-5, -4.5 .. 5]
-- let f = (\x -> x)
let f = id
lam_sm <- generateUniformPoints 100 (-1.0, 1.0)
let p = getPF f lam_sm
let u = updated f p grdpoints
print u