|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DataType - Type of data used on the domain of this distribution. For example, a
scalar distribution would have DataType of Double, and a multivariate
distribution would have a DataType of Vector.public interface Distribution<DataType>
Describes a very high-level distribution of data. Basically, this is an object that can be sampled according to its distribution of data.
| Method Summary | |
|---|---|
DataType |
sample(Random random)
Draws a single random sample from the distribution. |
ArrayList<? extends DataType> |
sample(Random random,
int numSamples)
Draws multiple random samples from the distribution. |
| Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable |
|---|
clone |
| Method Detail |
|---|
DataType sample(Random random)
random - Random-number generator to use in order to generate random numbers.
ArrayList<? extends DataType> sample(Random random,
int numSamples)
random - Random-number generator to use in order to generate random numbers.numSamples - Number of samples to draw from the distribution.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||