Skip to contents

MDGM Model

MDGM Model

Details

R6 class wrapping a C++ MDGM model. Use mdgm_model() to create instances.

Methods


Method new()

Create a new MdgmModel. Use mdgm_model() instead.

Usage

MdgmModel$new(ptr)

Arguments

ptr

External pointer to a C++ Model object.


Method has_emission()

Check if the model has an emission layer.

Usage

MdgmModel$has_emission()

Returns

Logical.


Method nvertices()

Get the number of vertices.

Usage

MdgmModel$nvertices()

Returns

Integer.


Method ncolors()

Get the number of colors (categories).

Usage

MdgmModel$ncolors()

Returns

Integer.


Method emission_type()

Get the emission family type.

Usage

MdgmModel$emission_type()

Returns

Character string ("bernoulli", "gaussian", "poisson") or NULL for standalone models.


Method get_ptr()

Get the internal C++ pointer. For internal use only.

Usage

MdgmModel$get_ptr()

Returns

External pointer.