Class WeightedTripleDistribution<T1,T2,T3>
java.lang.Object
org.tribuo.util.infotheory.impl.WeightedTripleDistribution<T1,T2,T3>
- Type Parameters:
T1
- Type of the first list.T2
- Type of the second list.T3
- Type of the third list.
Generates the counts for a triplet of vectors. Contains the joint
count, the three pairwise counts, and the three marginal counts.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWeightedTripleDistribution
(long count, Map<CachedTriple<T1, T2, T3>, WeightCountTuple> jointCount, Map<CachedPair<T1, T2>, WeightCountTuple> abCount, Map<CachedPair<T1, T3>, WeightCountTuple> acCount, Map<CachedPair<T2, T3>, WeightCountTuple> bcCount, Map<T1, WeightCountTuple> aCount, Map<T2, WeightCountTuple> bCount, Map<T3, WeightCountTuple> cCount) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T1,
T2, T3> WeightedTripleDistribution <T1, T2, T3> static <T1,
T2, T3> WeightedTripleDistribution <T1, T2, T3> constructFromMap
(Map<CachedTriple<T1, T2, T3>, WeightCountTuple> jointCount)
-
Field Details
-
DEFAULT_MAP_SIZE
- See Also:
-
count
-
-
Constructor Details
-
WeightedTripleDistribution
public WeightedTripleDistribution(long count, Map<CachedTriple<T1, T2, T3>, WeightCountTuple> jointCount, Map<CachedPair<T1, T2>, WeightCountTuple> abCount, Map<CachedPair<T1, T3>, WeightCountTuple> acCount, Map<CachedPair<T2, T3>, WeightCountTuple> bcCount, Map<T1, WeightCountTuple> aCount, Map<T2, WeightCountTuple> bCount, Map<T3, WeightCountTuple> cCount)
-
-
Method Details
-
getJointCount
-
getABCount
-
getACCount
-
getBCCount
-
getACount
-
getBCount
-
getCCount
-
constructFromLists
public static <T1,T2, WeightedTripleDistribution<T1,T3> T2, constructFromListsT3> (List<T1> first, List<T2> second, List<T3> third, List<Double> weights) -
constructFromMap
public static <T1,T2, WeightedTripleDistribution<T1,T3> T2, constructFromMapT3> (Map<CachedTriple<T1, T2, T3>, WeightCountTuple> jointCount)
-