public class TrendSeries extends FunctionLineSeries
TrendSeries
can be used to plot a trend-line based on a LineSeries,
or on a series of data points. It is used exactly the same way as a SplineSeries
LineSeries
,
SpineSeries
maxx, minx
Constructor and Description |
---|
TrendSeries(String name)
Create a new TrendSeries
|
Modifier and Type | Method and Description |
---|---|
void |
complete()
Complete the function.
|
double |
func(double x)
Given an X value, return the equivalent Y value of this function.
|
void |
set(double x,
double y)
Set a value on the graph.
|
createFunctionSeries, getLineSeries, setLineSeries, setSteps
setDepth
addBox, addLine, addMarker, getName, outputToSeries, outputToSeriesFunction, setFloatingPointX, setFloatingPointY, setStyle, toString
public TrendSeries(String name)
name
- the name of the Seriespublic void set(double x, double y)
x
parameter specifies the horizontal
position on the graph, and the y
parameter specifies the vertical position.
Both must be real numbers.x
- the X co-ordinate of the sampley
- the Y co-ordinate of the samplepublic void complete()
FunctionLineSeries
super.complete()
first.complete
in class FunctionLineSeries
public double func(double x)
FunctionLineSeries
Double.NaN
or infinite, and either of those values
will result in a gap in the line.func
in class FunctionLineSeries
x
- the X-value of the function - guaranteed not to be NaN or InfiniteCopyright © 2001-2016 Big Faceless Organization