public class NoisySinusWave extends AbstractStream
| Modifier and Type | Field and Description |
|---|---|
protected Double |
amplitude |
protected Double |
frequency |
protected Double |
index |
protected String |
key |
protected Double |
mean |
protected ColtGaussian |
noise |
protected Long |
seed |
protected Double |
variance |
closed, count, id, in, limit, prefix, seqId, sequenceKey, urlSOURCE_KEY| Constructor and Description |
|---|
NoisySinusWave() |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAmplitude() |
Double |
getFrequency() |
String |
getKey() |
Double |
getMean() |
Long |
getSeed() |
Double |
getVariance() |
void |
init() |
Data |
readNext() |
void |
setAmplitude(Double amplitude) |
void |
setFrequency(Double frequency) |
void |
setKey(String key) |
void |
setMean(Double mean) |
void |
setSeed(Long seed) |
void |
setVariance(Double variance) |
close, getId, getInputStream, getLimit, getPrefix, getSequenceKey, getUrl, read, setId, setLimit, setPrefix, setSequenceKey, setUrlprotected Double index
protected Double amplitude
protected Double frequency
protected String key
protected ColtGaussian noise
protected Long seed
protected Double mean
protected Double variance
public void init()
throws Exception
init in interface Sourceinit in class AbstractStreamExceptionpublic Data readNext() throws Exception
readNext in class AbstractStreamExceptionAbstractStream.read()public Double getAmplitude()
public void setAmplitude(Double amplitude)
amplitude - the amplitude to setpublic Double getFrequency()
public void setFrequency(Double frequency)
frequency - the frequency to setpublic String getKey()
public void setKey(String key)
key - the key to setpublic Long getSeed()
public void setSeed(Long seed)
public Double getMean()
public void setMean(Double mean)
public Double getVariance()
public void setVariance(Double variance)
Copyright © 2018. All rights reserved.