adjacency: Revert to density estimate

This reverts commit 23bb499d3a.
This commit is contained in:
Elias Projahn 2022-01-13 18:35:02 +01:00
parent 0087f83247
commit 8cda3e8e83
4 changed files with 50 additions and 4 deletions

21
man/densest.Rd Normal file
View file

@ -0,0 +1,21 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adjacency.R
\name{densest}
\alias{densest}
\title{Find the densest value in the data.}
\usage{
densest(data)
}
\arguments{
\item{data}{The input data.}
}
\value{
The densest value of data.
}
\description{
This function assumes that data represents a continuous variable and finds
a single value with the highest estimated density. This can be used to
estimate the mode of the data. If there is only one value that value is
returned. If multiple density maxima with the same density exist, their mean
is returned.
}