Class TripleDistribution<T1,T2,T3>

java.lang.Object
org.tribuo.util.infotheory.impl.TripleDistribution<T1,T2,T3>
Type Parameters:
T1 - Type of the first list.
T2 - Type of the second list.
T3 - Type of the third list.

public class TripleDistribution<T1,T2,T3> extends Object
Generates the counts for a triplet of vectors. Contains the joint count, the three pairwise counts, and the three marginal counts.
  • Field Details

    • DEFAULT_MAP_SIZE

      public static final int DEFAULT_MAP_SIZE
      See Also:
    • count

      public final long count
  • Constructor Details

    • TripleDistribution

      public TripleDistribution(long count, Map<CachedTriple<T1,T2,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, Map<CachedPair<T1,T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> abCount, Map<CachedPair<T1,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> acCount, Map<CachedPair<T2,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> bcCount, Map<T1, com.oracle.labs.mlrg.olcut.util.MutableLong> aCount, Map<T2, com.oracle.labs.mlrg.olcut.util.MutableLong> bCount, Map<T3, com.oracle.labs.mlrg.olcut.util.MutableLong> cCount)
  • Method Details

    • getJointCount

      public Map<CachedTriple<T1,T2,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> getJointCount()
    • getABCount

      public Map<CachedPair<T1,T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> getABCount()
    • getACCount

      public Map<CachedPair<T1,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> getACCount()
    • getBCCount

      public Map<CachedPair<T2,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> getBCCount()
    • getACount

      public Map<T1, com.oracle.labs.mlrg.olcut.util.MutableLong> getACount()
    • getBCount

      public Map<T2, com.oracle.labs.mlrg.olcut.util.MutableLong> getBCount()
    • getCCount

      public Map<T3, com.oracle.labs.mlrg.olcut.util.MutableLong> getCCount()
    • constructFromLists

      public static <T1,T2,T3> TripleDistribution<T1,T2,T3> constructFromLists(List<T1> first, List<T2> second, List<T3> third)
    • constructFromMap

      public static <T1,T2,T3> TripleDistribution<T1,T2,T3> constructFromMap(Map<CachedTriple<T1,T2,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount)
    • constructFromMap

      public static <T1,T2,T3> TripleDistribution<T1,T2,T3> constructFromMap(Map<CachedTriple<T1,T2,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, int abSize, int acSize, int bcSize, int aSize, int bSize, int cSize)
    • constructFromMap

      public static <T1,T2,T3> TripleDistribution<T1,T2,T3> constructFromMap(Map<CachedTriple<T1,T2,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, Map<CachedPair<T1,T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> abCount, Map<CachedPair<T1,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> acCount, Map<CachedPair<T2,T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> bcCount, Map<T1, com.oracle.labs.mlrg.olcut.util.MutableLong> aCount, Map<T2, com.oracle.labs.mlrg.olcut.util.MutableLong> bCount, Map<T3, com.oracle.labs.mlrg.olcut.util.MutableLong> cCount)