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 GaussianSampleGenerated synthetic samples and component labels from GaussianMixture.sample.
Parameters (Compile-Time)
Section titled “Parameters (Compile-Time)”| Parameter | Description |
|---|---|
dtype |
Scalar floating-point precision type. Default DType.float64. |
Constructors
Section titled “Constructors”def __init__(out self, var X: Matrix[Self.dtype], var y: List[Int])Initialize a GaussianSample container.
Attributes
Section titled “Attributes”| Attribute | Description |
|---|---|
X |
Sampled observations matrix of shape . |
y |
Originating mixture component index for each sample of length . |