R/b.maxout.R

Defines functions b.maxout

Documented in b.maxout

#' maxout statistic for resampling
#'
#' @param z data
#' @param index resampling index
#' @param dims dims of x and y
#'
#' @return maxout statistic
#' @export
#'
#' @examples
#' \dontrun{
#' b.maxout(1:100,51:150,c(50,50))
#' }
b.maxout <- function(z,index,dims){
  n1 <- dims[1]
  n2 <- dims[2]
  z <- z[index]
  x <- z[1:n1]
  y <- z[(n1+1):n2]
  return(maxout(x,y))
}
SC19092/SC19092 documentation built on Jan. 2, 2020, 7:45 a.m.