JavaMI
Class JointProbabilityState

java.lang.Object
  extended by JavaMI.JointProbabilityState

public class JointProbabilityState
extends java.lang.Object

Calculates the probabilities of each state in a joint random variable. Provides the base for all functions of two variables.


Field Summary
 int firstMaxVal
           
 java.util.HashMap<java.lang.Integer,java.lang.Double> firstProbMap
           
 int jointMaxVal
           
 java.util.HashMap<java.lang.Integer,java.lang.Double> jointProbMap
           
 int secondMaxVal
           
 java.util.HashMap<java.lang.Integer,java.lang.Double> secondProbMap
           
 
Constructor Summary
JointProbabilityState(double[] firstVector, double[] secondVector)
          Constructor for the JointProbabilityState class.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jointProbMap

public final java.util.HashMap<java.lang.Integer,java.lang.Double> jointProbMap

firstProbMap

public final java.util.HashMap<java.lang.Integer,java.lang.Double> firstProbMap

secondProbMap

public final java.util.HashMap<java.lang.Integer,java.lang.Double> secondProbMap

jointMaxVal

public final int jointMaxVal

firstMaxVal

public final int firstMaxVal

secondMaxVal

public final int secondMaxVal
Constructor Detail

JointProbabilityState

public JointProbabilityState(double[] firstVector,
                             double[] secondVector)
Constructor for the JointProbabilityState class. Takes two data vectors and calculates the joint and marginal probabilities, before storing them in HashMaps.

Parameters:
firstVector - Input vector. It is discretised to the floor of each value.
secondVector - Input vector. It is discretised to the floor of each value.