conditional.config.energy.old: Older implementation of Energy function for energy of a...

View source: R/energy_util.R

conditional.config.energy.oldR Documentation

Older implementation of Energy function for energy of a conditional configuration of states E(Xi | X/Xi). Uses the feature function formulation.

Description

Assumes log-potentials are in gRbase format

Usage

conditional.config.energy.old(
  config,
  condition.element.number,
  adj.node.list,
  edge.mat,
  one.lgp,
  two.lgp,
  ff,
  printQ = FALSE
)

Arguments

config

A node configuration (state) vector

condition.element.number

i of E(Xi | X/Xi)

adj.node.list

XXXX

two.lgp

Log edge potentials (two-body energies)

ff

The feature function

edges.mat

Matrix of connected node edges

Details

The function will XXXX

Value

The function will XX


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