Safe Haskell | None |
---|
Dataset abstraction.
Dataset
A dataset with elements of type a
.
Reading
sample :: RandomGen g => g -> Int -> Dataset a -> IO ([a], g)Source
A dataset sample of the given size.
Construction
withVect :: [a] -> (Dataset a -> IO b) -> IO bSource
Construct dataset from a vector of elements and run the given handler.