Description Usage Arguments Author(s) Examples
This function allows to calculate the classification of each cell in the
GRID, based on the score function of the naive Bayes model.
See score
function.
1 |
object |
A |
apr_inc |
logical. If TRUE the apriori score is included for prediction calculation. |
... |
pass to other methods. |
Enrique Del Callejo-Canal (edelcallejoc@gmail.com).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(sp)
library(rgeos)
data(Mex0)
data(mammals)
# Generating de grid from Mex0 data
Mex0.grd<-grd_build(Mex0)
# Identification points of mammals with colnames = NULL.
x.mat<-id_pts(grd = Mex0.grd, pts = mammals)
x.model <- NBModel(x.mat, target = 1:10, fac.lap = 0.01)
x.prediction <- predict(x.model, apr_inc = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.