VineDensity.sample
- VineDensity.sample(n_samples=1, random_state=None)
Draws samples from the fitted joint density.
Samples \(U \sim C\) via
simulate()and pushes each component back through the inverse marginal CDF \(F_j^{-1}\) to obtain a sample in the original feature space.- Parameters:
- n_samplesint, default=1
Number of samples to generate.
- random_stateint, RandomState instance or None, default=None
Resolved fresh via sklearn.utils.check_random_state for this call. None reuses the RNG resolved at fit time.
- Returns:
- ndarray, shape (n_samples, n_features), dtype float
Generated samples in the original feature scale.