R/initialize_findA.R

initialize_findA <- function (depth, size) {

        findA <- new.env()

        findA$values      <- list()
        findA$values[[1]] <- rep(-Inf, size)

        for (i in 2:depth) {
                findA$values[[i]] <- rep(-Inf, size)
        }

        return (findA)
}

Try the pcSteiner package in your browser

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

pcSteiner documentation built on May 23, 2022, 9:05 a.m.