Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.statcato.random
Class SampleFromVector

    java.lang.Object
      java.util.Random
          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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD