weightedDistance {CaseBasedReasoning}R Documentation

Weighted Distance calculation

Description

Weighted Distance calculation

Usage

weightedDistance(x, y = NULL, weights = NULL)

Arguments

x

a new dataset

y

a second new dataset

weights

a vector of weights

Value

a dist or matrix object

Examples


require(ranger)
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
terminalNodes(iris[, -5], rf)



[Package CaseBasedReasoning version 0.3 Index]