public class GaussianStream extends AbstractStream
| Modifier and Type | Field and Description |
|---|---|
(package private) Double[] |
attributes |
(package private) Long |
count |
(package private) Map<String,Gaussian> |
generators |
(package private) static org.slf4j.Logger |
log |
(package private) Random |
random |
(package private) Long |
seed |
(package private) Random |
seedGenerator |
(package private) Map<String,Class<?>> |
types |
closed, id, in, limit, prefix, seqId, sequenceKey, urlSOURCE_KEY| Constructor and Description |
|---|
GaussianStream()
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,
Gaussian dist) |
void |
setSeed(Long seed) |
getId, getInputStream, getLimit, getPrefix, getSequenceKey, getUrl, read, setId, setLimit, setPrefix, setSequenceKey, setUrlstatic org.slf4j.Logger log
Random random
Long seed
Random seedGenerator
Double[] attributes
Long count
public GaussianStream()
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 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.