create_tree: Create a persistent expandable k-d tree

Description Usage Arguments Value Examples

Description

create_tree build a persistent expandable k-d tree from a vector or matrix.

Usage

1
create_tree(x, leafSize = 11, leafBuffer = 0)

Arguments

x

n vectors stored in an n by p matrix. These vectors will be used to create the K-d tree. It is assumed that all values are finite and observed.

leafSize

A scalar used to specify the number of points to store in the leaf nodes.

leafBuffer

A scalar used to specify the number of empty index locations to retrain in the leaf nodes. This is useful to allow for quicker insertions of new data points. Note that empty points are in addition to the leafSize.

Value

An S3 object cotaining the persistent tree.

Examples

1
2
x <- matrix(runif(20),10,2)
myTree <- create_tree(x)

jlisic/POETree documentation built on May 19, 2019, 12:46 p.m.