org.eclipse.birt.chart.internal.model
Class FittingCalculator

java.lang.Object
  extended by org.eclipse.birt.chart.internal.model.FittingCalculator

public class FittingCalculator
extends java.lang.Object

A utility class to calculate curve fitting points using the LOWESS algorithm.


Constructor Summary
FittingCalculator()
          The constructor.
FittingCalculator(double[] xa, double[] ya, double windowProportion)
          The constructor.
 
Method Summary
 void calculate(double[] xa, double[] ya, double windowProportion)
          Calculate the fitting points by given parameters.
 double[] getFittedValue()
          Returns the calculated fitted value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FittingCalculator

public FittingCalculator()
The constructor.


FittingCalculator

public FittingCalculator(double[] xa,
                         double[] ya,
                         double windowProportion)
The constructor.

Parameters:
xa - x values.
ya - y valus.
windowProportion - window proportion for LOWESS algorithm.
Method Detail

getFittedValue

public double[] getFittedValue()
Returns the calculated fitted value.

Returns:

calculate

public void calculate(double[] xa,
                      double[] ya,
                      double windowProportion)
Calculate the fitting points by given parameters. This uses a LOWESS algorithm.

Parameters:
xa - x values.
ya - y valus.
windowProportion - window proportion for LOWESS algorithm.


Copyright © 2005-2008 Actuate Corp. All rights reserved.