realized_dist: Construct a realized distribution object.
Description
A realized_dist is an empirical_dist that preserves
provenance: it remembers the source distribution that generated its
samples. All empirical_dist methods work unchanged via S3
inheritance.
Usage
realized_dist(data, source, n)
Value
A realized_dist object.
Arguments
- data
A matrix of sampled data (rows = observations).
- source
The distribution object that generated data.
- n
The number of samples drawn.