B C D F M P Q R S U

B

BiasedDie - Class in randomized
This class contains an implementation of a biased die by means of a biased coin.
BiasedDie() - Constructor for class randomized.BiasedDie
Initializes this biased die.

C

Choice - Class in probabilistic
The class Choice contains the static method make.
Coin - Class in probabilistic
The class Coin contains the static method flip.

D

Die - Class in probabilistic
The class Die contains the static method roll.
Die - Class in randomized
This class contains an implementation of a die by means of a coin.
Die() - Constructor for class randomized.Die
Initializes this die.

F

flip() - Static method in class probabilistic.Coin
Returns either 0 or 1, both with probability 0.5.

M

make(double[]) - Static method in class probabilistic.Choice
Given an array p of probabilities, returns i with probability p[i], where 0 ≤ i < p.length.
make(int) - Static method in class probabilistic.UniformChoice
Returns an integer in the interval [0, n-1], each with probability 1/n.

P

probabilistic - package probabilistic
 

Q

Quick - Class in randomized
This class Quick contains the method sort which is a randomized version of quicksort.

R

randomized - package randomized
 
roll() - Static method in class probabilistic.Die
Returns an integer in the interval [0, 5], each with probability 1/6.
roll() - Method in class randomized.BiasedDie
Returns the result of the roll of this biased die.
roll() - Method in class randomized.Die
Returns the result of the roll of this die.

S

sort(List<T>) - Static method in class randomized.Quick
Sorts the given list.

U

UniformChoice - Class in probabilistic
The class UniformChoice contains the static method make.

B C D F M P Q R S U