getTC: Gets the column of the transition matrix.

Description Usage Arguments

View source: R/getTC.R

Description

Gets the column of the transition matrix corresponding to a point from a rectangular grid according to the mask

Usage

1
getTC(point, size, mask)

Arguments

point

We are setting the transition probabilities starting from this point. It corresponds to the column (point[2] - 1 ) * size[1] + point[1] of the transition matrix.

size

Size of the grid. It is expected to be a 2 dimensional vector, containing the number of rows and columns respectively.

mask

Transition probabilities to the contiguous tiles. It is expected to be a 3x3 matrix where the (2,2) element represents the probability of staying in the current tile.


MobilePhoneESSnetBigData/destim documentation built on Dec. 7, 2020, 7:35 p.m.