CaseBasedReasoning (version 0.1)

weightedDistance: 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

Run this code
# NOT RUN {
require(ranger)
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
nodeID <- terminalNodeIDs(iris[, -5], rf)

# }

Run the code above in your browser using DataLab