fillMatrix: Fill Matrix with zeros and ones

Description Usage Arguments Value Note Author(s) References Examples

View source: R/fillMatrix.R

Description

This function fills previously created smaller Matrix (see function createSmallerMatrix) either with 0 or 1 according to values of the data. If at least one of the values in higher 3x3 matrix is 1, then cell of subjecent matrix is filled with 1, otherwise with 0. On basis of this matrix parameter p will be estimated. Function is used by main function "estimationFunction" and shall not be called or changed by user.

Usage

1
fillMatrix(totalMatrix, smallerMatrix)

Arguments

totalMatrix

Data, consisting of either 1 or zero, where number of rows equals to number of columns

smallerMatrix

Previously created matrix with size three to the power of ramification-1 of original Data.

Value

Returns filled "smaller" matrix, from which parameter p will be estimated.

Note

Shall not be called or changed by user.

Author(s)

Philipp Hermann; Jozef Kiselak; Milan Stehlik\ philipp.hermann@jku.at; jozef.kiselak@upjs.sk; mlnstehlik@gmail.com

References

Hermann, P., Mrkvicka, T., Mattfeldt, T., Minarova, M., Helisova, K., Nicolis, O., Wartner, F., and Stehlik, M. (2015). Fractal and stochastic Geometry Inference for Breast Cancer: a Case Study with Random Fractal Models and Quermass-Interaction Process. Statistics in Medicine, 34(18), 2636-2661. doi: 10.1002/sim.6497.

Examples

1
2
3
matrix.sma = createSmallerMatrix(Data0501)
matrix.tot = Data0501
matrix.res = fillMatrix(matrix.tot, matrix.sma)

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