org.statcato.random
Class SampleFromVector

java.lang.Object
  extended by java.util.Random
      extended by org.statcato.random.SampleFromVector
All Implemented Interfaces:
java.io.Serializable

public class SampleFromVector
extends java.util.Random

A random sampler for a given vector, with or without replacement.

Since:
1.0
Version:
%I%, %G%
Author:
Margaret Yau
See Also:
Serialized Form

Constructor Summary
SampleFromVector(java.util.Vector<Cell> vector, boolean replace)
           
 
Method Summary
 Cell nextSample()
           
 
Methods inherited from class java.util.Random
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleFromVector

public SampleFromVector(java.util.Vector<Cell> vector,
                        boolean replace)
Method Detail

nextSample

public Cell nextSample()