R/caller.R

Defines functions caller

Documented in caller

caller <- function(start, index, n, bases)
{
	p <- vector('list', bases+1)
	i <- 1
        p[[1]] <- start
	cat("Initial Value", index(start), '\n')
	while (i < bases)
	{
		p[[i+1]] <- search_geodesic(current=p[[i]], index=index, n=n[i], max.tries=10)
		if(is.null(p[[i+1]])) return(p[1:i])
		i <- i + 1
	}
	return(p)
}

Try the cepp package in your browser

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

cepp documentation built on May 2, 2019, 3:44 p.m.