Skip to content

Process between 2 Matrices #9

@discoleo

Description

@discoleo

Process between 2 Matrices

It is possible to build a coupled process which transitions matrix 1 into matrix 2.

R Code

# t = Mixing parameter;
as.grid.m2 = function(m1, m2, t, p=0.5, val = c(-1, 0)) {
	isBlock = ((1-t)*m1 + t*m2) < p;
	m = array(val[2], dim = dim(m1));
	m[isBlock] = val[1];
	return(m);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions