org.esa.beam.util.math
Class FXYSum.Linear

java.lang.Object
  extended by org.esa.beam.util.math.FXYSum
      extended by org.esa.beam.util.math.FXYSum.Linear
Enclosing class:
FXYSum

public static final class FXYSum.Linear
extends FXYSum

Provides an optimized computeZ method for linear polynomials (order = 1).

See Also:
FXYSum.FXY_LINEAR

Nested Class Summary
 
Nested classes/interfaces inherited from class org.esa.beam.util.math.FXYSum
FXYSum.BiCubic, FXYSum.BiLinear, FXYSum.BiQuadric, FXYSum.Cubic, FXYSum.Linear, FXYSum.Quadric
 
Field Summary
 
Fields inherited from class org.esa.beam.util.math.FXYSum
FXY_4TH, FXY_BI_4TH, FXY_BI_CUBIC, FXY_BI_LINEAR, FXY_BI_QUADRATIC, FXY_CUBIC, FXY_LINEAR, FXY_QUADRATIC
 
Constructor Summary
FXYSum.Linear()
           
FXYSum.Linear(double[] coefficients)
           
 
Method Summary
 double computeZ(double x, double y)
          Computes this sum of function terms z(x,y) = sum(c[i] * f[i](x,y), i=0, n-1).
 
Methods inherited from class org.esa.beam.util.math.FXYSum
appendCFunctionCodeBody, appendCFunctionCodeEnd, appendCFunctionCodePart, appendCFunctionCodeStart, approximate, computeZ, createCFunctionCode, createCopy, createFXYSum, getCoefficients, getFunctions, getMaxError, getNumTerms, getOrder, getRootMeanSquareError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FXYSum.Linear

public FXYSum.Linear()

FXYSum.Linear

public FXYSum.Linear(double[] coefficients)
Method Detail

computeZ

public double computeZ(double x,
                       double y)
Description copied from class: FXYSum
Computes this sum of function terms z(x,y) = sum(c[i] * f[i](x,y), i=0, n-1). The method will return zero unless the FXYSum.approximate(double[][], int[]) is called in order to set the coefficient vector c.

Overrides:
computeZ in class FXYSum
Parameters:
x - the x value
y - the y value
Returns:
the z value
See Also:
FXYSum.computeZ(FXY[], double[], double, double)


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.