public class IlvMovingAvgDataSet extends IlvCombinedDataSet
DEFAULT_UNDEF_VALUE
Constructor and Description |
---|
IlvMovingAvgDataSet()
Creates a moving average with a default period.
|
IlvMovingAvgDataSet(IlvDataSet dataSet,
int period)
Creates a moving average of the specified data set, with the specified period.
|
IlvMovingAvgDataSet(int period)
Creates a moving average with the specified period.
|
Modifier and Type | Method and Description |
---|---|
protected int |
computeDataCount()
Computes the data count of this data set.
|
protected void |
dataSetContentsChanged(DataSetContentsEvent event)
Called when one of the data sets referenced by this object has been
modified.
|
protected void |
dataSetPropertyChanged(DataSetPropertyEvent event)
Called when a property of one of the data sets referenced by this object
has been modified.
|
double |
getMinimumXDifference()
Returns the minimum positive difference among adjacent X values in the
sequence of X values, sorted into ascending order.
|
String |
getName()
Returns the name of this data set.
|
int |
getPeriod()
Returns the period over which the average is computed.
|
double |
getXData(int idx)
Returns the X-value of the data point at the specified index.
|
double |
getYData(int idx)
Returns the Y-value of the data point at the specified index.
|
boolean |
isXValuesSorted()
Returns
true if the referenced data set provides sorted
X values. |
void |
setPeriod(int period)
Sets the period over which the average is computed.
|
addDataSet, addDataSet, dataSetsChanged, dispose, fireDataSetContentsEvent, getDataCount, getDataSet, getDataSetCount, getDataSetIndex, getDataSets, getMaxDataSetCount, removeDataSet, removeDataSet, replaceDataSet, setDataSet, setDataSets, setMaxDataSetCount, updateDataCount
addData, addDataSetListener, computeLimits, computeMinimumXDifference, dataAdded, dataChanged, endBatch, fireDataAddedEvent, fireDataChangedEvent, fireDataSetPropertyEvent, getData, getDataBetween, getDataInside, getDataInside, getDataLabel, getProperty, getUndefValue, getXRange, getXRange, getYRange, getYRange, invalidateLimits, invalidateLimits, invalidateLimits, isBatched, isEditable, isXRangeIncludingUndefinedPoints, putProperty, removeDataSetListener, setData, setLimitsValid, setName, setUndefValue, setXRangeIncludingUndefinedPoints, startBatch, toString
public IlvMovingAvgDataSet()
public IlvMovingAvgDataSet(int period)
public IlvMovingAvgDataSet(IlvDataSet dataSet, int period)
public String getName()
getName
in interface IlvDataSet
getName
in class IlvAbstractDataSet
public boolean isXValuesSorted()
true
if the referenced data set provides sorted
X values.isXValuesSorted
in interface IlvDataSet
isXValuesSorted
in class IlvCombinedDataSet
IlvAbstractDataSet.isXValuesSorted()
public double getMinimumXDifference()
getMinimumXDifference
in class IlvAbstractDataSet
public int getPeriod()
setPeriod(int)
public void setPeriod(int period)
getPeriod()
public double getYData(int idx)
getYData
in interface IlvDataSet
getYData
in class IlvAbstractDataSet
idx
- a data point index, >= 0, < getDataCount()
public double getXData(int idx)
getXData
in interface IlvDataSet
getXData
in class IlvAbstractDataSet
idx
- a data point index, >= 0, < getDataCount()
protected void dataSetContentsChanged(DataSetContentsEvent event)
dataSetContentsChanged
in class IlvCombinedDataSet
protected void dataSetPropertyChanged(DataSetPropertyEvent event)
dataSetPropertyChanged
in class IlvCombinedDataSet
protected int computeDataCount()
computeDataCount
in class IlvCombinedDataSet
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.