% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eval.R
\name{hb.paramgen}
\alias{hb.paramgen}
\title{Randomly generate model parameters for heat-bath sampling}
\usage{
hb.paramgen(nn, ne = 0, j_connectivity = 1)
}
\arguments{
\item{nn}{Integer. Number of units (species, taxa, or members).}

\item{ne}{Integer. Number of environmental factors. If \code{ne > 0}, \code{g} is generated.}

\item{j_connectivity}{Numeric in [0, 1]. Fraction of possible pairwise
interactions set to non-zero.}
}
\value{
A list containing at least:
\describe{
  \item{h}{Named numeric vector of length \code{nn}. Implicit environmental parameters}
  \item{J}{Named numeric matrix (\code{nn x nn}), symmetric. Interaction matrix}
}
If \code{ne > 0}, also includes:
\describe{
  \item{g}{Named numeric matrix (\code{nn x ne}). Explicit environmental parameters}
}
}
\description{
Generates random implicit environmental parameters \code{h} and a interaction matrix \code{J}. 
Optionally generates explicit environmental coefficients \code{g}. 
The \code{j_connectivity} parameter controls the fraction of non-zero off-diagonal interactions.
}
