make_init_csmooth.RdInitializes csmoothEM parameters from a 1D ordering score by:
Discretizing ordering_vec into K ordered groups (equal/quantile/kmeans).
Computing component means mu.
Estimating diagonal variances sigma2 under either:
modelName="homoskedastic": one variance per coordinate shared across clusters (length d).
modelName="heteroskedastic": one variance per coordinate per cluster (d x K).
This function mirrors the discretization and mean construction logic of make_init(),
but returns sigma2 (diagonal variances) instead of a list of full covariance matrices.
Numeric matrix (n x d).
Numeric vector of length n (can contain NA).
Integer >= 2; number of mixture components.
Either "homoskedastic" or "heteroskedastic".
Nonnegative scalar added to variance estimates.
One of "equal", "quantile", "kmeans".
How to handle NA in ordering_vec: "drop" or "error".
Small positive floor for pi and sigma2.
A list with:
pi: length-K mixing proportions.
mu: list of length K, each a length-d mean vector.
sigma2: diagonal variances; length-d vector (homoskedastic) or d x K matrix (heteroskedastic).
keep_idx: row indices kept after NA handling.
cluster_rank: integer vector in 1..K for each kept row.