VineForestDensity.sample

VineForestDensity.sample(n_samples=1)

Draws samples from the ensemble (mixture-of-densities) distribution.

Allocates \(n_\text{samples}\) draws across the \(M\) survivors via a single multinomial draw (uniform mixture weights \(1/M\)), calls each estimator’s sample() once with its assigned count, concatenates, and shuffles the rows so the output is row-exchangeable.

Parameters:
n_samplesint, default=1

Number of samples to generate.

Returns:
ndarray, shape (n_samples, n_features), dtype float

Generated samples in the original feature scale.