org.codehaus.jet.hypothesis.rejection.evaluators
Class AbstractResponseSurfaceEvaluator
java.lang.Object
org.codehaus.jet.hypothesis.rejection.evaluators.AbstractResponseSurfaceEvaluator
- All Implemented Interfaces:
- ResponseSurfaceEvaluator
- Direct Known Subclasses:
- ECMResponseSurfaceEvaluator, URCResponseSurfaceEvaluator
public abstract class AbstractResponseSurfaceEvaluator
- extends java.lang.Object
- implements ResponseSurfaceEvaluator
Abstract base class for ResponseSurfaceEvaluator implementations
- Author:
- Mauro Talevi
Method Summary |
protected double |
calculateX(int T,
int correction)
Calculates the independent variable of the power series |
protected double |
powerSeries(double[] beta,
double x,
int order)
Evaluates the power series in x up to the given order
with coefficients provided |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractResponseSurfaceEvaluator
public AbstractResponseSurfaceEvaluator()
calculateX
protected double calculateX(int T,
int correction)
- Calculates the independent variable of the power series
x = 1/T*, T* = T-correction
- Parameters:
T
- the sample sizecorrection
- the sample size correction
- Returns:
- The value of x, or
1
if T* <= 0
powerSeries
protected double powerSeries(double[] beta,
double x,
int order)
- Evaluates the power series in
x
up to the given order
with coefficients provided
b(0) + b(1)*x + b(2)*x^2 + ... + b(n)*x^n
- Parameters:
beta
- the power series coefficientsx
- the independent variable of the power seriesorder
- the order of the power series
- Returns:
- The value of the power series
Copyright © 2006-2007. All Rights Reserved.