R/puSummary-internals.R

Defines functions .nSv.trainOcc

.negD01 <- function (tpr, ppp)
   -sqrt( (1-tpr)^2 + ppp^2 )

.nSv.trainOcc <- function(x) {
  nSV <- numeric(nrow(x$results))
  for (m in 1:nrow(x$results)) {
    nSV[m] <- nSV(update(x, modRow=m)$finalModel)
  }
  return(nSV)
}
benmack/oneClass documentation built on Dec. 15, 2020, 7:38 p.m.