conditional.config.energy: Energy function for energy of a conditional configuration of...

View source: R/energy_util.R

conditional.config.energyR Documentation

Energy function for energy of a conditional configuration of states E(Xi | X/Xi). Uses the feature function formulation. Eliminates dependency on gRbase format for potentials

Description

Assumes log-potentials are in gRbase format

Usage

conditional.config.energy(
  theta.par = NULL,
  config,
  condition.element.number,
  crf,
  ff,
  printQ = FALSE
)

Arguments

config

A node configuration (state) vector

condition.element.number

i of E(Xi | X/Xi)

ff

The feature function

adj.node.list

XXXX

edges.mat

Matrix of connected node edges

two.lgp

Log edge potentials (two-body energies)

Details

The function will XXXX

Value

The function will XX


npetraco/CRFutil documentation built on Nov. 23, 2023, 11:30 a.m.