Description Usage Arguments Value Examples

`create_tree`

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

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

`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. |

An S3 object cotaining the persistent tree.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.