modeFinder: modeFinder

View source: R/substitution_rate_correction.R

modeFinderR Documentation

modeFinder

Description

Find the mode (peak) of a univariate distribution.

Usage

modeFinder(x, bw = 0.1, from = 0, to = 5)

Arguments

x

A numeric vector or a kernel density estimate (KDE).

bw

Bandwidth for the KDE. Default is 0.1.

from

Starting point for mode search. Default is 0.

to

Ending point for mode search. Default is 5.

Value

The mode (peak) of the distribution.


shinyWGD documentation built on April 4, 2025, 2:28 a.m.