R/bound.R

Defines functions bound

bound <- function(noden)
{
  boundr <- rep(NA,nrow(noden$bounds))
  for(i in 1:nrow(noden$bounds)){
    if(!is.na(noden$bounds[i,3])){
      boundr[i] <- 1
    } 
    else 
      boundr[i] <- sum(!is.infinite(noden$bounds[i,1]),!is.infinite(noden$bounds[i,2]))
  }
  bound <- boundr[boundr!=0]
  return(bound)
}

Try the Harvest.Tree package in your browser

Any scripts or data that you put into this service are public.

Harvest.Tree documentation built on May 2, 2019, 3:31 p.m.