Uses of Class
org.tribuo.util.infotheory.impl.CachedPair
Package
Description
This package provides the implementations and helper classes for the
information theoretic functions in
org.tribuo.util.infotheory
.-
Uses of CachedPair in org.tribuo.util.infotheory.impl
Modifier and TypeFieldDescriptionfinal Map<CachedPair<T1,
T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> PairDistribution.jointCounts
The joint distribution.Modifier and TypeMethodDescriptionCachedTriple.getAB()
Gets the pair of the first and second elements.CachedTriple.getAC()
Gets the pair of the first and third elements.CachedTriple.getBC()
Gets the pair of the second and third elements.Modifier and TypeMethodDescriptionMap<CachedPair<T1,
T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> TripleDistribution.getABCount()
The joint distribution over the first and second variables.WeightedTripleDistribution.getABCount()
The joint distribution over the first and second variables.Map<CachedPair<T1,
T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> TripleDistribution.getACCount()
The joint distribution over the first and third variables.WeightedTripleDistribution.getACCount()
The joint distribution over the first and third variables.Map<CachedPair<T2,
T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> TripleDistribution.getBCCount()
The joint distribution over the second and third variables.WeightedTripleDistribution.getBCCount()
The joint distribution over the second and third variables.WeightedPairDistribution.getJointCounts()
Gets the joint distribution.static <T1,
T2> ArrayList<CachedPair<T1, T2>> CachedPair.zipArraysCached
(ArrayList<T1> first, ArrayList<T2> second) Takes two arrays and zips them together into an array of CachedPairs.Modifier and TypeMethodDescriptionstatic <T1,
T2> PairDistribution<T1, T2> PairDistribution.constructFromMap
(Map<CachedPair<T1, T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount) Constructs a distribution from a joint count.static <T1,
T2> PairDistribution<T1, T2> PairDistribution.constructFromMap
(Map<CachedPair<T1, T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, int aSize, int bSize) Constructs a distribution from a joint count.static <T1,
T2> PairDistribution<T1, T2> PairDistribution.constructFromMap
(Map<CachedPair<T1, T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, Map<T1, com.oracle.labs.mlrg.olcut.util.MutableLong> aCount, Map<T2, com.oracle.labs.mlrg.olcut.util.MutableLong> bCount) Constructs a joint distribution from the counts.static <T1,
T2> WeightedPairDistribution<T1, T2> WeightedPairDistribution.constructFromMap
(Map<CachedPair<T1, T2>, WeightCountTuple> jointCount) Generates a WeightedPairDistribution by generating the marginal distributions for the first and second elements.ModifierConstructorDescriptionPairDistribution
(long count, LinkedHashMap<CachedPair<T1, T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCounts, LinkedHashMap<T1, com.oracle.labs.mlrg.olcut.util.MutableLong> firstCount, LinkedHashMap<T2, com.oracle.labs.mlrg.olcut.util.MutableLong> secondCount) Constructs a pair distribution.PairDistribution
(long count, Map<CachedPair<T1, T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCounts, Map<T1, com.oracle.labs.mlrg.olcut.util.MutableLong> firstCount, Map<T2, com.oracle.labs.mlrg.olcut.util.MutableLong> secondCount) Constructs a pair distribution.WeightedPairDistribution
(long count, LinkedHashMap<CachedPair<T1, T2>, WeightCountTuple> jointCounts, LinkedHashMap<T1, WeightCountTuple> firstCount, LinkedHashMap<T2, WeightCountTuple> secondCount) Constructs a weighted pair distribution from the supplied values.WeightedPairDistribution
(long count, Map<CachedPair<T1, T2>, WeightCountTuple> jointCounts, Map<T1, WeightCountTuple> firstCount, Map<T2, WeightCountTuple> secondCount) Constructs a weighted pair distribution from the supplied values.