simpeg.utils.GaussianMixtureWithNonlinearRelationships.sample#

GaussianMixtureWithNonlinearRelationships.sample(n_samples=1)[source]#

[modified from Scikit-Learn.mixture.gaussian_mixture] Generate random samples from the fitted Gaussian distribution with nonlinear relationships.

Parameters:
n_samplesint, default: `

Number of samples to generate.

Returns:
Xarray, shape (n_samples, n_features)

Randomly generated sample

yarray, shape (nsamples,)

Component labels