Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
E
G
H
I
K
M
N
O
P
R
S
T
V
W
C
clear()
- Method in class org.dishevelled.weighted.
HashWeightedMap
containsKey(Object)
- Method in class org.dishevelled.weighted.
HashWeightedMap
containsValue(Object)
- Method in class org.dishevelled.weighted.
HashWeightedMap
createWeightedMap()
- Static method in class org.dishevelled.weighted.
WeightedMaps
Create and return a new weighted map with the default initial capacity and load factor.
createWeightedMap(int)
- Static method in class org.dishevelled.weighted.
WeightedMaps
Create and return new weighted map with the specified initial capacity and default load factor.
createWeightedMap(int, float)
- Static method in class org.dishevelled.weighted.
WeightedMaps
Create and return new weighted map with the specified initial capacity and load factor.
createWeightedMap(WeightedMap<? extends E>)
- Static method in class org.dishevelled.weighted.
WeightedMaps
Create and return a new weighted map with the elements and weights in the specified weighted map.
E
entrySet()
- Method in class org.dishevelled.weighted.
HashWeightedMap
G
get(Object)
- Method in class org.dishevelled.weighted.
HashWeightedMap
H
HashWeightedMap
<
E
> - Class in
org.dishevelled.weighted
Implementation of WeightedMap that delegates to a HashMap.
HashWeightedMap()
- Constructor for class org.dishevelled.weighted.
HashWeightedMap
Create a new weighted map with the default initial capacity and load factor.
HashWeightedMap(int)
- Constructor for class org.dishevelled.weighted.
HashWeightedMap
Create a new weighted map with the specified initial capacity and default load factor.
HashWeightedMap(int, float)
- Constructor for class org.dishevelled.weighted.
HashWeightedMap
Create a new weighted map with the specified initial capacity and load factor.
HashWeightedMap(WeightedMap<? extends E>)
- Constructor for class org.dishevelled.weighted.
HashWeightedMap
Create a new weighted map with the elements and weights in the specified weighted map (copy constructor).
I
isEmpty()
- Method in class org.dishevelled.weighted.
HashWeightedMap
K
keySet()
- Method in class org.dishevelled.weighted.
HashWeightedMap
M
maximumRank()
- Method in class org.dishevelled.weighted.
HashWeightedMap
Return the maximum rank in this weighted map.
maximumRank()
- Method in interface org.dishevelled.weighted.
WeightedMap
Return the maximum rank in this weighted map.
N
normalizedWeight(E)
- Method in class org.dishevelled.weighted.
HashWeightedMap
Return the normalized weight for the specified element in this weighted map.
normalizedWeight(E)
- Method in interface org.dishevelled.weighted.
WeightedMap
Return the normalized weight for the specified element in this weighted map.
O
org.dishevelled.weighted
- package org.dishevelled.weighted
Weighted map interface and implementation.
P
put(E, Double)
- Method in class org.dishevelled.weighted.
HashWeightedMap
putAll(Map<? extends E, ? extends Double>)
- Method in class org.dishevelled.weighted.
HashWeightedMap
R
rank(E)
- Method in class org.dishevelled.weighted.
HashWeightedMap
Return an integer rank for the specified element in this weighted map based on its weight.
rank(E)
- Method in interface org.dishevelled.weighted.
WeightedMap
Return an integer rank for the specified element in this weighted map based on its weight.
remove(Object)
- Method in class org.dishevelled.weighted.
HashWeightedMap
S
sample()
- Method in class org.dishevelled.weighted.
HashWeightedMap
Randomly sample an element from this weighted map according to its normalized weight.
sample()
- Method in interface org.dishevelled.weighted.
WeightedMap
Randomly sample an element from this weighted map according to its normalized weight.
setRandom(Random)
- Method in class org.dishevelled.weighted.
HashWeightedMap
Set the source of randomness for this weighted map to
random
.
size()
- Method in class org.dishevelled.weighted.
HashWeightedMap
T
totalWeight()
- Method in class org.dishevelled.weighted.
HashWeightedMap
Return the sum of the weights in this weighted map.
totalWeight()
- Method in interface org.dishevelled.weighted.
WeightedMap
Return the sum of the weights in this weighted map.
V
values()
- Method in class org.dishevelled.weighted.
HashWeightedMap
W
weight(E)
- Method in class org.dishevelled.weighted.
HashWeightedMap
Return the weight for the specified element in this weighted map.
weight(E)
- Method in interface org.dishevelled.weighted.
WeightedMap
Return the weight for the specified element in this weighted map.
WeightedMap
<
E
> - Interface in
org.dishevelled.weighted
A map of elements to weights with sampling and ranking functionality.
WeightedMaps
- Class in
org.dishevelled.weighted
Static utility methods for WeightedMaps.
C
E
G
H
I
K
M
N
O
P
R
S
T
V
W
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2005-2012
dishevelled.org
. All Rights Reserved.