Number of samples to draw.
Non-empty array of weighted objects.
Name of the numeric weight property.
Name of the property to extract from each sample for histogramming.
Optionalrng: JssmRng
Optional random number generator.
A Map from extracted key values to their occurrence counts.
Draws
nweighted random samples, extracts a named key from each, and returns a histograph (Map) of how often each key value appeared. Useful for validating that a probabilistic transition distribution is roughly correct over many trials.