bdm2D: Calculate the Kolmogorov-Chaitin complexity of a matrix

Description Usage Arguments Details Value Examples

View source: R/bdm2D.R

Description

Calculate the Kolmogorov-Chaitin complexity of a matrix

Usage

1
bdm2D(mat, block_size, offset)

Arguments

mat

a valid matrix.

block_size

block size required to estimate the Kolmogorov-Chaitin complexity of x using the 2-dimensional Block Decomposition Method (BDM).

offset

offset required to estimate the Kolmogorov-Chaitin complexity of x using the 2-dimensional Block Decomposition Method (BDM).

Details

This function gives an estimation of the Kolmogorov-Chaitin complexity of a matrix using the 2-dimensional Block Decomposition Method (BDM).

Value

A number corresponding to the estimated Kolmogorov-Chaitin complexity of the input matrix.

Examples

1
2
3
4
5
6
## Not run: 
set.seed(42)
m99 <- apply(matrix(0, 9, 9), c(1,2), function(x) sample(c(0,1),1))
bdm2D(m99, 3, 3)

## End(Not run)

allgebrist/algodyn documentation built on Oct. 21, 2019, 2:47 a.m.