% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimateBandwidth.R \name{estimate.bandwidth} \alias{estimate.bandwidth} \title{Bandwidth estimation for CVE.} \usage{ estimate.bandwidth(X, k, nObs) } \arguments{ \item{X}{data matrix with samples in its rows.} \item{k}{Dimension of lower dimensional projection.} \item{nObs}{number of points in a slice, see \eqn{nObs} in CVE paper.} } \value{ Estimated bandwidth \code{h}. } \description{ Estimates a bandwidth \code{h} according \deqn{% h = (2 * tr(\Sigma) / p) * (1.2 * n^{-1 / (4 + k)})^2}{% h = (2 * tr(\Sigma) / p) * (1.2 * n^(\frac{-1}{4 + k}))^2} with \eqn{n} the sample size, \eqn{p} its dimension (\code{n <- nrow(X); p <- ncol(X)}) and the covariance-matrix \eqn{\Sigma} which is \code{(n-1)/n} times the sample covariance estimate. }