gridfun {RepeatedHighDim}R Documentation

Specifies grid for the calculation of the halfspace location depths

Description

Specifies a k-dimensional array as grid for the calculation of the halfspace location depths.

Usage

gridfun(D, grid.size, k = 4)

Arguments

D

Data set with rows representing the individuals and columns representing the features. In the case of three dimensions, the colnames of D must be c("x", "y", "z").

grid.size

Number of grid points in each dimension.

k

Number of dimensions of the grid. Needs only be specified if D has more than columns.

Details

D must have at least three columns. If D has three columns, automatically a 3-dimensional grid is generated. If D has more than three columns, k must be specified.

Value

A list containing the following elements:

H

The k-dimensional array.

In the case of a 3-dimensional array, additional elements are:

grid.x, grid.y, grid.z

The coordinates of the grid points at each dimension.

In the case that the array has more than three dimensions, additional elements are:

grid.k

A matrix with the coordinates of the grid. Row represents dimensions and columns represent grid points.

Author(s)

Jochen Kruppa, Klaus Jung

See Also

For more information, please refer to the package's documentation and the tutorial: https://software.klausjung-lab.de/.


[Package RepeatedHighDim version 2.3.0 Index]