fillMatrix {FractalParameterEstimation}R Documentation

Fill Matrix with zeros and ones

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

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

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

[Package FractalParameterEstimation version 1.1.2 Index]