kde2dVec: Vectorized Two-dimensional Kernel Density Estimation

Description Usage Arguments Value

View source: R/analysis.R

Description

A wrapper around kde2d that converts the density estimation into a one-dimensional probability distribution.

Usage

1
kde2dVec(mtx, n = 25, lims = c(range(mtx[, 1], mtx[, 2])))

Arguments

mtx

A numeric matrix which provides the data for the kernel density estimation.

n

Number of grid points in each direction. Can be a scalar or a length-2 integer vector.

lims

The limits of the rectangle covered by the grid as c(xl, xu, yl, yu).

Value

A vector for the one-dimensional probability distribution.


astrolabediagnostics/orloj documentation built on May 20, 2021, 2:17 p.m.