-
- All Implemented Interfaces:
-
com.androidplot.Series
,com.androidplot.xy.XYSeries
public class NormedXYSeries implements XYSeries
Wrapper implementation of XYSeries that wraps another XYSeries, normalizing values in the range of 0 to 1. Note that it's possible to push normed values outside of the standard 0, 1 range by applying a sufficiently large offset.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
NormedXYSeries.Norm
-
Constructor Summary
Constructors Constructor Description NormedXYSeries(XYSeries rawData)
Normalizes yVals only, auto calculating min/max. NormedXYSeries(XYSeries rawData, NormedXYSeries.Norm x, NormedXYSeries.Norm y)
-
Method Summary
-
-
Constructor Detail
-
NormedXYSeries
NormedXYSeries(XYSeries rawData)
Normalizes yVals only, auto calculating min/max.
-
NormedXYSeries
NormedXYSeries(XYSeries rawData, NormedXYSeries.Norm x, NormedXYSeries.Norm y)
- Parameters:
rawData
- The XYSeries to be normalized.x
- Normalization to apply to xVals.y
- Normalization to apply to yVals.
-
-
Method Detail
-
size
int size()
-
denormalizeXVal
Number denormalizeXVal(Number xVal)
-
denormalizeYVal
Number denormalizeYVal(Number yVal)
-
getX
Number getX(int index)
Returns the x-value for an index within a series.
- Parameters:
index
- the index index (in the range0
tosize()-1
).
-
-
-
-