com.jrefinery.chart.data
Class PlotFit
java.lang.Object
|
+--com.jrefinery.chart.data.PlotFit
- public class PlotFit
- extends java.lang.Object
Manages the creation of a new dataset based on an existing XYDataset,
according to a pluggable algorithm.
- Author:
- MW
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlotFit
public PlotFit(XYDataset data,
PlotFitAlgorithm alg)
- Standard constructor.
- Parameters:
data
- the underlying dataset.alg
- the algorithm.
setXYDataset
public void setXYDataset(XYDataset data)
- Sets the underlying dataset.
- Parameters:
data
- the underlying dataset.
setPlotFitAlgorithm
public void setPlotFitAlgorithm(PlotFitAlgorithm alg)
- Sets the algorithm used to generate the new dataset.
- Parameters:
alg
- the algorithm.
getResults
public java.lang.Object[][][] getResults()
- Returns a three-dimensional array based on algorithm calculations. Used
to create a new dataset.
Matthew Wright: implements what I'm doing in code now... not the best way to do this?
- Returns:
- a three-dimensional array.
getFit
public XYDataset getFit()
- Constructs and returns a new dataset based on applying an algorithm to
an underlying dataset.
- Returns:
- a new dataset.