% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arvind_distribution.R
\name{darvind}
\alias{darvind}
\title{Arvind Distribution Density Function}
\usage{
darvind(x, theta, log = FALSE)
}
\arguments{
\item{x}{numeric vector of quantiles.}

\item{theta}{positive numeric scalar; the distribution parameter.}

\item{log}{logical; if \code{TRUE}, log-density is returned. Default
\code{FALSE}.}
}
\value{
A numeric vector of density values (or log-density values when
\code{log = TRUE}).
}
\description{
Computes the probability density function (PDF) of the Arvind distribution.
}
\details{
The Arvind distribution with parameter \eqn{\theta > 0} has PDF
\deqn{f(x; \theta) = \frac{\theta(1 + 2x + 2\theta x^2)}{(1 + \theta x)^2}
  \exp(-\theta x^2), \quad x > 0.}
}
\examples{
# Evaluate the PDF at several points
darvind(c(0.5, 1, 2), theta = 1)

# Log-density
darvind(1, theta = 2, log = TRUE)

# Returns 0 for x <= 0
darvind(-1, theta = 1)

}
