get_incoma {comat}R Documentation

Create an integrated co-occurrence matrix (incoma)

Description

Create an integrated co-occurrence matrix (incoma)

Usage

get_incoma(x, neighbourhood = 4, classes = NULL)

Arguments

x

A list object containing categorical matrices with categories

neighbourhood

The number of directions in which cell adjacencies are considered as neighbours: 4 (rook's case) or 8 (queen's case). The default is 4.

classes

A list of the same length as x with the values of selected classes from all of the objects in x. It is used to calculate incoma only for selected classes.

Value

An integrated co-occurrence matrix

Examples

data(raster_x, package = "comat")
data(raster_w, package = "comat")
x = list(raster_x, raster_w, raster_x)

get_incoma(x)

get_incoma(x, classes = list(1:2, 2:4, 1))

[Package comat version 0.9.5 Index]