slsim.ParamDistributions package

Submodules

slsim.ParamDistributions.gaussian_mixture_model module

class slsim.ParamDistributions.gaussian_mixture_model.GaussianMixtureModel(means=None, stds=None, weights=None)[source]

Bases: object

A Gaussian Mixture Model (GMM) class.

This class is used to represent a mixture of Gaussian distributions, each of which is defined by its mean, standard deviation and weight.

rvs(size)[source]

Generate random variables from the GMM distribution.

Parameters:

size (int) – The number of random variables to generate.

Returns:

An array of random variables sampled from the GMM distribution.

Return type:

np.array

Module contents