get.logPotential function

Calculate the log-potential of CRF

Calculate the log-potential of CRF

Calculate the logarithmic potential of a CRF with given configuration

get.logPotential(crf, configuration)

Arguments

  • crf: The CRF
  • configuration: The vector of states of nodes

Returns

The function will return the log-potential of CRF with given configuration

Details

The function will calculate the logarithmic potential of a CRF with given configuration, i.e., the assigned states of nodes in the CRF.

See Also

get.potential

  • Maintainer: Ling-Yun Wu
  • License: GPL (>= 2)
  • Last published: 2019-12-01