public class ColtGaussianStream extends AbstractStream
| Modifier and Type | Field and Description |
|---|---|
protected Double[] |
attributes |
protected Map<String,ColtGaussian> |
generators |
(package private) static org.slf4j.Logger |
log |
protected Long |
seed |
protected cern.jet.random.engine.MersenneTwister64 |
seedGenerator |
protected Map<String,Class<?>> |
types |
closed, count, id, in, limit, prefix, seqId, sequenceKey, urlSOURCE_KEY| Constructor and Description |
|---|
ColtGaussianStream()
Create a new Gaussian stream with the given number of classes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Data |
generate() |
String |
getDescription() |
Long |
getNextSeed() |
Long |
getSeed() |
void |
init() |
Data |
readNext() |
void |
setAttributes(Double[] attributes) |
void |
setGenerator(String attribute,
ColtGaussian dist) |
void |
setSeed(Long seed) |
getId, getInputStream, getLimit, getPrefix, getSequenceKey, getUrl, read, setId, setLimit, setPrefix, setSequenceKey, setUrlstatic org.slf4j.Logger log
protected Map<String,ColtGaussian> generators
protected Long seed
protected cern.jet.random.engine.MersenneTwister64 seedGenerator
protected Double[] attributes
public ColtGaussianStream()
numberOfClasses - The number of classes.attributeDistributions - The parameterization of the attribute distributions.public void init()
throws Exception
init in interface Sourceinit in class AbstractStreamExceptionpublic Long getSeed()
public void setSeed(Long seed)
seed - the seed to setpublic Data generate()
public void setGenerator(String attribute, ColtGaussian dist)
public void setAttributes(Double[] attributes)
public Data readNext() throws Exception
readNext in class AbstractStreamExceptionSource.read()public String getDescription()
public Long getNextSeed()
public void close()
close in interface Sourceclose in class AbstractStreamCopyright © 2018. All rights reserved.