com.nchart3d.NChart.NChartPointAnalyzer Class Referenceabstract

The NChartPointAnalyzer provides basic methods to scan the given array of chart points and perform some analytics. More...

Inheritance diagram for com.nchart3d.NChart.NChartPointAnalyzer:
com.nchart3d.NChart.NChartOLSTrendDetector com.nchart3d.NChart.NChartPeakDetector

Public Member Functions

 NChartPointAnalyzer ()
 Create instance of point analyzer.
 
NChartPoint[] analyzePoints (NChartPoint[] points)
 Perform the analytics on an array of points. More...
 
NChartPoint[] analyzePoints (NChartPoint[] points, int stateIndex)
 Perform the analytics on an array of points. More...
 
NChartValue getStepDimension ()
 Key of the value that should be interpreted as step dimension. More...
 
void setStepDimension (NChartValue stepDimension)
 For details see getStepDimension().
 
NChartValue getValueDimension ()
 Key of the value that should be interpreted as height dimension. More...
 
void setValueDimension (NChartValue valueDimension)
 For details see getValueDimension().
 

Detailed Description

The NChartPointAnalyzer provides basic methods to scan the given array of chart points and perform some analytics.

Member Function Documentation

NChartPoint [] com.nchart3d.NChart.NChartPointAnalyzer.analyzePoints ( NChartPoint[]  points)
inline

Perform the analytics on an array of points.

This method is implemented in subclasses. It takes into account all the states inside the points given.

Parameters
points- array of points to analyze.
Returns
array of result points. Note, that these points can be obtained from the array given, but also generated anew, or both according to the logic of particular point analyzer.
NChartPoint [] com.nchart3d.NChart.NChartPointAnalyzer.analyzePoints ( NChartPoint[]  points,
int  stateIndex 
)
inline

Perform the analytics on an array of points.

This method is implemented in subclasses. It takes into account the point states with given index only.

Parameters
points- array of points to analyze.
stateIndex- index of point state to take into account.
Returns
array of result points. Note, that these points can be obtained from the array given, but also generated anew, or both according to the logic of particular point analyzer.
NChartValue com.nchart3d.NChart.NChartPointAnalyzer.getStepDimension ( )
inline

Key of the value that should be interpreted as step dimension.

Typically it is NChartValue.X (which is the default value), however for bar series it should be NChartValue.Y.

NChartValue com.nchart3d.NChart.NChartPointAnalyzer.getValueDimension ( )
inline

Key of the value that should be interpreted as height dimension.

Typically it is NChartValue.Y (which is the default value), however for bar series it should be NChartValue.X.