edu.ucla.belief.uai2006
Class UaiMapSolution

Object
  extended by UaiMapSolution

public class UaiMapSolution
extends Object

A solution for a problem. The competition now only uses MPE or P (e).

Author:
Mark Chavira and Arthur Choi

Field Summary
 Map<String,Object> info
          Additional information from the algorithm in the form of pairs.
 Map<FiniteVariable,Object> instantiation
          The instantiation of MAP variables.
 double log_probability
          The computed mpe probability in log_e space or Double.NaN if computing P (e).
 BigDecimal probability
          The computed P (e) or null if computing MPE.
 
Constructor Summary
UaiMapSolution()
          The constructor, which sets instantiation, probability, and info to null and log_probability to Double.NaN.
 
Method Summary
static BigDecimal toBigDecimal(double d)
          Converts a double to a big decimal.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

info

public Map<String,Object> info
Additional information from the algorithm in the form of pairs. This information is optional, and so this field may be null.


instantiation

public Map<FiniteVariable,Object> instantiation
The instantiation of MAP variables. This field will be null if the query is P (e) or if algorithm did not compute an instantiation (the evaluation does not require algorithms to compute instantiations).


probability

public BigDecimal probability
The computed P (e) or null if computing MPE.


log_probability

public double log_probability
The computed mpe probability in log_e space or Double.NaN if computing P (e).

Constructor Detail

UaiMapSolution

public UaiMapSolution()
The constructor, which sets instantiation, probability, and info to null and log_probability to Double.NaN.

Method Detail

toBigDecimal

public static BigDecimal toBigDecimal(double d)
Converts a double to a big decimal.

Parameters:
d - the given double.
Returns:
the big decimal.


Copyright 2010 UCLA Automated Reasoning Group