weightedDistance: Weighted Distance calculation

Description Usage Arguments Value Examples

View source: R/distance.R

Description

Weighted Distance calculation

Usage

1

Arguments

x

a new dataset

y

a second new dataset

weights

a vector of weights

Value

a dist or matrix object

Examples

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

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