edu.ucla.belief.io
Class CPTInfo

Object
  extended by CPTInfo

public class CPTInfo
extends Object

Bundle info about a CPT imported from a tab-delimited file.

Since:
022405
Author:
Keith Cascio

Nested Class Summary
static class CPTInfo.Parameter
           
static interface CPTInfo.ReadableWritableTable
           
 
Field Summary
static double DOUBLE_EPSILON
           
static double DOUBLE_FILL_VALUE
           
 int length
           
 
Constructor Summary
CPTInfo(FiniteVariable joint, CPTInfo.ReadableWritableTable destination)
           
 
Method Summary
 void commit(boolean superimpose, boolean normalize)
           
 int countInformationConditions()
           
 int countInformationParameters()
           
 double distanceMeasure(CPTInfo.ReadableWritableTable destination, boolean superimpose)
           
static boolean epsilonEquals(double v1, double v2, double epsilon)
           
 double getDistanceMeasure(boolean superimpose)
           
 FiniteVariable getJoint()
           
 int getNumChanged()
           
 int getNumConflicts()
           
 int getNumRedundant()
           
 int getNumSpared()
           
 CPTInfo.Parameter getParameter(int i)
           
 int[] getUtilIndices()
           
 Map getUtilMap()
           
 int index(FiniteVariable var)
           
 boolean isCommitted()
           
 void normalizeAllNew()
           
 void normalizeSuperimposed()
           
 void setParameter(int[] mindex, String token)
           
 void setParameter(Map mapping, String token)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOUBLE_EPSILON

public static final double DOUBLE_EPSILON
See Also:
Constant Field Values

DOUBLE_FILL_VALUE

public static final double DOUBLE_FILL_VALUE
See Also:
Constant Field Values

length

public final int length
Constructor Detail

CPTInfo

public CPTInfo(FiniteVariable joint,
               CPTInfo.ReadableWritableTable destination)
Method Detail

index

public int index(FiniteVariable var)

getUtilMap

public Map getUtilMap()

setParameter

public void setParameter(Map mapping,
                         String token)
                  throws Exception
Throws:
Exception

getUtilIndices

public int[] getUtilIndices()

setParameter

public void setParameter(int[] mindex,
                         String token)
                  throws Exception
Throws:
Exception

epsilonEquals

public static boolean epsilonEquals(double v1,
                                    double v2,
                                    double epsilon)

getNumRedundant

public int getNumRedundant()

getNumConflicts

public int getNumConflicts()

countInformationParameters

public int countInformationParameters()

countInformationConditions

public int countInformationConditions()

getNumChanged

public int getNumChanged()

getNumSpared

public int getNumSpared()

normalizeAllNew

public void normalizeAllNew()

getDistanceMeasure

public double getDistanceMeasure(boolean superimpose)
Since:
022805

distanceMeasure

public double distanceMeasure(CPTInfo.ReadableWritableTable destination,
                              boolean superimpose)
Since:
022805

commit

public void commit(boolean superimpose,
                   boolean normalize)
Since:
022805

normalizeSuperimposed

public void normalizeSuperimposed()
Since:
030105

getJoint

public FiniteVariable getJoint()
Since:
022805

getParameter

public CPTInfo.Parameter getParameter(int i)
Since:
030705

isCommitted

public boolean isCommitted()
Since:
030805


Copyright 2010 UCLA Automated Reasoning Group