T1
- The type of the first elementT2
- The type of the second elementpublic class PairDistribution<T1,T2> extends Object
CachedPair
objects.Modifier and Type | Field and Description |
---|---|
long |
count |
Map<T1,com.oracle.labs.mlrg.olcut.util.MutableLong> |
firstCount |
Map<CachedPair<T1,T2>,com.oracle.labs.mlrg.olcut.util.MutableLong> |
jointCounts |
Map<T2,com.oracle.labs.mlrg.olcut.util.MutableLong> |
secondCount |
Constructor and Description |
---|
PairDistribution(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) |
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) |
Modifier and Type | Method and Description |
---|---|
static <T1,T2> PairDistribution<T1,T2> |
constructFromLists(List<T1> first,
List<T2> second)
Generates the counts for two vectors.
|
static <T1,T2> PairDistribution<T1,T2> |
constructFromMap(Map<CachedPair<T1,T2>,com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount) |
static <T1,T2> PairDistribution<T1,T2> |
constructFromMap(Map<CachedPair<T1,T2>,com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount,
int aSize,
int bSize) |
static <T1,T2> PairDistribution<T1,T2> |
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) |
public final long count
public final Map<CachedPair<T1,T2>,com.oracle.labs.mlrg.olcut.util.MutableLong> jointCounts
public 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)
public PairDistribution(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)
public static <T1,T2> PairDistribution<T1,T2> constructFromLists(List<T1> first, List<T2> second)
T1
- Type of the first array.T2
- Type of the second array.first
- An array of values.second
- Another array of values.public static <T1,T2> PairDistribution<T1,T2> constructFromMap(Map<CachedPair<T1,T2>,com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount)
public static <T1,T2> PairDistribution<T1,T2> constructFromMap(Map<CachedPair<T1,T2>,com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, int aSize, int bSize)
public static <T1,T2> PairDistribution<T1,T2> 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)
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.