jhplot.stat
Class JointProbabilityState
- java.lang.Object
-
- jhplot.stat.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
Fields Modifier and Type Field and Description 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
Constructors Constructor and Description JointProbabilityState(double[] firstVector, double[] secondVector)
Constructor for the JointProbabilityState class.
-
-
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG