Documentation of 'edu.uci.jforests.learning.trees.decision.Entropy' Java class
Entropy
edu.uci.jforests.learning.trees.decision

Class Entropy



  • public class Entropy
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      Entropy() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double getEntropy(double[] dist)
      Computes the entropy of a given distribution.
      static double getSplitEntropy(double[] leftDist, double[] rightDist) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Entropy

        public Entropy()
    • Method Detail

      • getEntropy

        public static double getEntropy(double[] dist)
        Computes the entropy of a given distribution. Entropy is computed as sum(-ci/T log2(ci/T)), where ci is the i-th element in the distribution and T is the sum of these elements. The following method computes the above definition using a faster computation.
        Parameters:
        dist -
        Returns:
      • getSplitEntropy

        public static double getSplitEntropy(double[] leftDist,
                                             double[] rightDist)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.