adjacency: Use median as estimate

This commit is contained in:
Elias Projahn 2022-01-09 21:27:30 +01:00
parent 32776469bf
commit 23bb499d3a
4 changed files with 4 additions and 50 deletions

View file

@ -4,11 +4,11 @@
\alias{adjacency}
\title{Score genes based on their proximity to the reference genes.}
\usage{
adjacency(estimate = densest, combination = min)
adjacency(estimate = stats::median, combination = min)
}
\arguments{
\item{estimate}{A function that will be used to summarize the distance
values for each gene. See \code{\link[=densest]{densest()}} for the default implementation.}
values for each gene. By default, \code{\link[=median]{median()}} is used.}
\item{combination}{A function that will be used to combine the different
distances to the reference genes. By default \code{\link[=min]{min()}} is used. That means

View file

@ -1,21 +0,0 @@
% 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.
}