R/getSplitInformationForest.R

getSplitInformationForest <- function(rfObject, X = matrix()) {
	
	inbag <- rfObject$inbag
	
	lapply(1:rfObject$ntree, function(z) 
				getSplitInformationTree(tree = getTree(rfObject, z), 
						inbagInd = as.logical(inbag[,z]), X = X))
	
}
adibender/rFtools documentation built on May 14, 2019, 5:13 a.m.