Density: Density function

Description Usage Arguments Details Value Examples

View source: R/estDensities.R

Description

Density function

Usage

1
Density(rt, tt)

Arguments

rt

vector of reaction times

tt

grid to evaluate the density on

Details

Can be passed to the argument densityMethod of estDstarM. This function is a minimal example to use as custom smoothing function.

Value

a vector of length(tt)

Examples

1
2
3
4
5
x <- rgamma(1e5, 1, 1)
tt <- seq(0, 5, .01)
d <- Density(x, tt)
hist(x, freq = FALSE)
lines(tt, DstarM:::Density(x, tt))

DstarM documentation built on Aug. 29, 2020, 1:06 a.m.