edu.iastate.jtm.util
Class InfoTheory

java.lang.Object
  extended by edu.iastate.jtm.util.InfoTheory

public class InfoTheory
extends java.lang.Object

Calculate entropy, mutual information, ...

Author:
Jing Ding edu.iastate.jtm.util jtm

Constructor Summary
InfoTheory()
           
 
Method Summary
static double entropy(double[] freq, boolean rel)
           
static double entropy(double[] freq, int offset, int length, boolean rel)
           
static double entropy(int[] counts, boolean rel)
           
static double entropy(int[] counts, int offset, int length, boolean rel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoTheory

public InfoTheory()
Method Detail

entropy

public static double entropy(int[] counts,
                             int offset,
                             int length,
                             boolean rel)

entropy

public static double entropy(int[] counts,
                             boolean rel)

entropy

public static double entropy(double[] freq,
                             int offset,
                             int length,
                             boolean rel)

entropy

public static double entropy(double[] freq,
                             boolean rel)