JavaMI
Class JointProbabilityState
java.lang.Object
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.
Constructor Summary |
JointProbabilityState(double[] firstVector,
double[] secondVector)
Constructor for the JointProbabilityState class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.