% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/internal.R
\name{.extract_z_matrix}
\alias{.extract_z_matrix}
\title{Extract cluster assignment matrix from MCMC samples}
\usage{
.extract_z_matrix(object)
}
\arguments{
\item{object}{A \code{mixgpd_fit} object.}
}
\value{
Integer matrix with rows = posterior draws, cols = observations.
}
\description{
Extracts the posterior draws of cluster assignments \code{z[1:N]} from a fitted
mixgpd_fit object and returns them as an integer matrix (iterations x N).
}
\details{
Cluster samplers store latent labels as separate monitored nodes \code{z[i]}. This
helper locates those nodes in every retained chain, orders them by observation
index, stacks the chains, and returns the result as one integer matrix that is
ready for PSM and representative-partition calculations.
}
\keyword{internal}
