R/oracle.R

Defines functions oracleModelComplexity

Documented in oracleModelComplexity

### 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 Oct. 2, 2024, 9:06 a.m.