Spatial Random Field Model
Spatial Random Field Model
Details
R6 class wrapping a C++ spatial random field model. Use srf_model() to
create instances.
Methods
Method new()
Create a new SrfModel. Use srf_model() instead.
Arguments
ptr
External pointer to a C++ Model object.
model_type
Character string: "mdgm" or "mrf".
Method has_emission()
Check if the model has an emission layer.
Method nvertices()
Get the number of vertices.
Method ncolors()
Get the number of colors (categories).
Method emission_type()
Get the emission family type.
Returns
Character string ("bernoulli", "gaussian", "poisson") or
NULL for standalone models.
Method model_type()
Get the spatial model type.
Returns
Character string: "mdgm" or "mrf".
Method get_ptr()
Get the internal C++ pointer. For internal use only.
Returns
External pointer.
Methods
Method emission_type()
Usage
MdgmModel$emission_type()