R/oracle.R

### Compute Oracle model complexity from paper of Cleynen et al.
oracleModelComplexity <- function(bases, segments){
  stopifnot(is.numeric(bases))
  stopifnot(is.numeric(segments))
  under.sqrt <- 1.1 + log(bases/segments)
  in.square <- 1 + 4 * sqrt(under.sqrt)
  segments * in.square * in.square
### numeric vector of model complexity values.
}
 

Try the PeakSegOptimal package in your browser

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

PeakSegOptimal documentation built on May 1, 2019, 10:49 p.m.