depthMatrix: Get depth distance matrix

Description Usage Arguments Examples

View source: R/distance.R

Description

Get depth distance matrix

Usage

1
depthMatrix(x, y = NULL, rfObject)

Arguments

x

a new dataset

y

a new dataset

rfObject

ranger object

Examples

1
2
3
require(ranger)
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
d <- depthMatrix(x=iris[, -5], rfObject=rf)

CaseBasedReasoning documentation built on June 12, 2018, 5:18 p.m.