BESTree (version 0.5.2)

MPredict: Classify a set of new observation points

Description

Classify a set of new observation points

Usage

MPredict(M, Fit)

Arguments

M

A matrix of new observations where one row is one observation

Fit

A BEST object

Value

The predicted class

Examples

Run this code
# NOT RUN {
n <- 500
Data <- BESTree::Data[1:n,]
d <- ncol(Data)-1
NewPoints <- BESTree::Data[(n+1):(n+11),1:d]
VA <- ForgeVA(d,1,0,0,0)
Size <- 50
Fit <- BESTree::BEST(Data,Size,VA)
Predictions <- BESTree::MPredict(NewPoints,Fit)
# }

Run the code above in your browser using DataLab