Documentation of 'jhplot.stat.JointProbabilityState' Java class.
JointProbabilityState
jhplot.stat

Class 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

      Constructors 
      Constructor and Description
      JointProbabilityState(double[] firstVector, double[] secondVector)
      Constructor for the JointProbabilityState class.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, 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.

DMelt 3.0 © DataMelt by jWork.ORG