% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_utils.R
\name{calculate_pseudocount}
\alias{calculate_pseudocount}
\title{Calculate data-driven pseudocount for log transformation}
\usage{
calculate_pseudocount(values)
}
\arguments{
\item{values}{Numeric vector of abundance values}
}
\value{
Pseudocount value (half of minimum non-zero value, or 1e-6 fallback)
}
\description{
Calculates a pseudocount based on the data to avoid log(0) issues.
Uses half of the minimum non-zero value to ensure the pseudocount
is smaller than any real value in the data.
}
\keyword{internal}
