|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.functions.Function
com.steema.teechart.functions.DownSampling
public class DownSampling
Title: DownSampling class
Description: Reduces the number of points in series by using several different methods.
Copyright (c) 2005-2006 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Field Summary |
|---|
| Fields inherited from class com.steema.teechart.functions.Function |
|---|
canUsePeriod, dPeriod, HideSourceList, noSourceRequired, series, SingleSource, updating |
| Fields inherited from class com.steema.teechart.TeeBase |
|---|
chart |
| Constructor Summary | |
|---|---|
DownSampling()
|
|
DownSampling(IBaseChart c)
|
|
| Method Summary | |
|---|---|
void |
addPoints(java.util.ArrayList source)
Gets all points from Source series, performs a function operation on points and stores results in ParentSeries. |
java.lang.String |
getDescription()
Gets descriptive text. |
DownSamplingMethod |
getMethod()
Defines reduction/downsampling method. |
int |
getReducedSize()
Returns reduced size |
double |
getTolerance()
The tolerance for downsampling method. |
com.steema.teechart.functions.DownSampling.ReduceResults |
reduce(DownSamplingMethod algorithm,
double tol,
int lbound,
int ubound,
double[] x,
double[] y)
Reduce the number of points in double arrays |
void |
setMethod(DownSamplingMethod value)
Defines reduction/downsampling method. |
void |
setTolerance(double value)
Sets the tolerance for downsampling method. |
| Methods inherited from class com.steema.teechart.functions.Function |
|---|
addFunctionXY, calculate, calculateAllPoints, calculateByPeriod, calculateMany, calculatePeriod, doCalculation, getPeriod, getPeriodAlign, getPeriodStyle, getSeries, newInstance, readResolve, recalculate, setPeriod, setPeriodAlign, setPeriodStyle, setSeries, valueList |
| Methods inherited from class com.steema.teechart.TeeBase |
|---|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownSampling()
public DownSampling(IBaseChart c)
| Method Detail |
|---|
public com.steema.teechart.functions.DownSampling.ReduceResults reduce(DownSamplingMethod algorithm,
double tol,
int lbound,
int ubound,
double[] x,
double[] y)
algorithm - DownSamplingMethod reduction algorithmtol - double desired tolerancelbound - int lower bound for x,y arraysubound - int upper bound for x,y arraysx - double[] x arrayy - double[] y array
public int getReducedSize()
public double getTolerance()
public void setTolerance(double value)
value - doublepublic DownSamplingMethod getMethod()
public void setMethod(DownSamplingMethod value)
value - DownSamplingMethodpublic void addPoints(java.util.ArrayList source)
addPoints in class Functionsource - ArrayListpublic java.lang.String getDescription()
getDescription in class Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||