% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/weights.R
\name{validate_bandwidth}
\alias{validate_bandwidth}
\title{Validate bandwidth parameter}
\usage{
validate_bandwidth(bandwidth, adaptive)
}
\arguments{
\item{bandwidth}{Numeric scalar.  The bandwidth value to validate.}

\item{adaptive}{Logical scalar.  `TRUE` for adaptive (k-nearest-neighbour)
bandwidth, `FALSE` for fixed distance bandwidth.}
}
\value{
Invisibly returns `TRUE` when validation passes.
}
\description{
Checks that the supplied bandwidth is legal:
* fixed (adaptive = FALSE): must be a finite positive numeric scalar.
* adaptive (adaptive = TRUE): must be a finite positive integer scalar.
}
\keyword{internal}
