rGibbsRF: Gibbs Random Field simulation.

Description Usage Arguments Value Author(s) Examples

View source: R/rGibbsRF.R

Description

Simulates a realization of a GibbsModel object via Gibbs Sampler.

Usage

1
rGibbsRF(gModel, macrosteps = 50, initial = NULL, dim = c(150, 100))

Arguments

gModel

A GibbsModel object specifying wich model to sample from.

macrosteps

The number of times each pixel will be simulated from it's conditional distribution.

initial

A matrix indicating the initial object to start sampling from. If NULL, start with each pixel drawn from an independent discrete uniform distribution.

dim

Used when the initial matrix is NULL. Indicates the dimension of the field to be sampled (x-axis first).

Value

A matrix, realization from the specified Gibbs Model.

Author(s)

Victor Freguglia Souza

Examples

1
rGibbsRF(example.GibbsModel)

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