Skip to content

GaussianSample

Module: strata.mixture • Kind: struct • Traits: Copyable, Movable
Source: strata/mixture/gaussian_mixture.mojo

struct GaussianSample[dtype: DType = DType.float64](Copyable, Movable)
from strata.mixture import GaussianSample

Generated synthetic samples and component labels from GaussianMixture.sample.


Parameter Description
dtype Scalar floating-point precision type. Default DType.float64.

def __init__(out self, var X: Matrix[Self.dtype], var y: List[Int])

Initialize a GaussianSample container.


Attribute Description
X Sampled observations matrix of shape (N,D)(N, D).
y Originating mixture component index for each sample of length NN.