% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sparsify_moments.R
\name{.sparsify_moments_internal}
\alias{.sparsify_moments_internal}
\title{Compute externally sparsified network moments (internal)}
\usage{
.sparsify_moments_internal(G1, G2, rho_target, motif_specs)
}
\arguments{
\item{G1}{Dense binary adjacency matrix used as the density estimator.}

\item{G2}{Dense binary adjacency matrix used as the moment source.}

\item{rho_target}{Numeric; target edge density \eqn{\rho^\dagger \in (0,1)}.}

\item{motif_specs}{Compiled motif specification from
\code{\link{init_motif_specs}}.}
}
\value{
Named numeric vector of density-normalised moments
  \eqn{\hat\rho_{\tilde{G}_2}^{-|E(R)|} \cdot U_R(\tilde{G}_2)}, or a
  vector of \code{NA} values if the result is degenerate (zero density
  after edge removal).
}
\description{
Uses \code{G1} to estimate the sparsification probability and
independently applies random edge removal to \code{G2} to reach the
target density \code{rho_target}.  Returns the density-normalised moment
vector \eqn{\bar\Psi_{\rho^\dagger}(G_1, G_2)}.
}
\keyword{internal}
