powered by
Weighted Distance calculation
weightedDistance(x, y = NULL, weights = NULL)
a dist or matrix object
dist
matrix
a new dataset
a second new dataset
a vector of weights
# \donttest{ require(ranger) rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE) terminalNodes(iris[, -5], rf) # }
Run the code above in your browser using DataLab