GibbsModel: GibbsModel class object creation

Description Usage Arguments Value Author(s) Examples

View source: R/GibbsModel.R

Description

Creates a GibbsModel object, given specifications of a Gibbs Random Field model.

Usage

1
GibbsModel(G, cMat, V = NULL, vMat = NULL)

Arguments

G

An integer greater than 0, the maximum color value

cMat

a (C x 2) matrix where each line corresponds to relative position of neighbours.

V

a (G+1) vector corresponding to single site potentials (from 0 to G). Must sum 0. Can be NULL if vMat is also NULL.

vMat

a (C x 2G+1) matrix specifying potential values for each possible difference (from -G to G) and each type of neighbour.

Value

A GibbsModel object with the specified values.

Author(s)

Victor Freguglia Souza

Examples

1
GibbsModel(1,example.cMat,example.V,example.vMat)

VicFreguglia/GibbsRF documentation built on Oct. 25, 2019, 11:19 p.m.