hari_plotter.distributions module
- hari_plotter.distributions.generate_mixture_of_gaussians(n_samples, number_of_peaks, opinion_limits=(-1, 1), mean_opinion=0.5, size_of_each_peak=None, seed=None)[source]
Generates a mixture of Gaussians.
- Parameters:
n_samples – int, number of samples to be drawn.
number_of_peaks – int, number of peaks or Gaussian components.
opinion_limits – tuple(float, float), range of the opinions.
mean_opinion – float, mean opinion.
size_of_each_peak – List[int], size of each peak.
seed – int, random seed.
- Returns:
np.array, generated opinions.