R/createSmallerMatrix.R

Defines functions createSmallerMatrix

Documented in createSmallerMatrix

createSmallerMatrix <-
function(givenMatrix) {
  if(missing(givenMatrix)) 
    stop("Missing data")
  ## calculates ramification of given matrix
  ## deducts 1 for new ramification
  ramification = calcRamification(dim(givenMatrix)[[1]]) - 1
  ## create new matrix
  dimension = potence(3, ramification)*potence(3, ramification)
  x = matrix(as.integer(rep(99,dimension)), potence(3, ramification), potence(3, ramification))
  return(x)
}

Try the FractalParameterEstimation package in your browser

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

FractalParameterEstimation documentation built on July 10, 2019, 5:05 p.m.