function
Class WaveDragAxisymmetric.MaxRadiusLoFi

java.lang.Object
  extended by function.BasicScalarFunction
      extended by function.WaveDragAxisymmetric.AreaRule
          extended by function.WaveDragAxisymmetric.MaxRadiusLoFi
All Implemented Interfaces:
Computable, ScalarFunction, VariableBounds
Enclosing class:
WaveDragAxisymmetric

public static class WaveDragAxisymmetric.MaxRadiusLoFi
extends WaveDragAxisymmetric.AreaRule

Uses a simplistic way to compute the radius constraint violations. Assumes that the largest radius is the largest of the specified radii.

Author:
dgorur

Field Summary
 
Fields inherited from class function.BasicScalarFunction
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
WaveDragAxisymmetric.MaxRadiusLoFi()
           
 
Method Summary
 double quickCompute(double[] x)
          Compute method without dimension checking.
 void quickCompute(cern.colt.matrix.DoubleMatrix2D mat, cern.colt.matrix.DoubleMatrix1D outputs)
          Compute method without dimension checking, operating on DoubleMatrix2D and exploiting optimized operations therein.
 
Methods inherited from class function.WaveDragAxisymmetric.AreaRule
getBounds, getParent, init, main, setBounds, setParent, vectorize
 
Methods inherited from class function.BasicScalarFunction
checkDimensions, compute, compute, compute, compute, compute, compute, getInputDimension, getOutputDimension, isWithinBounds, makeBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaveDragAxisymmetric.MaxRadiusLoFi

public WaveDragAxisymmetric.MaxRadiusLoFi()
Method Detail

quickCompute

public double quickCompute(double[] x)
Description copied from class: BasicScalarFunction
Compute method without dimension checking. All subclasses must implement this method: it is the core method that defines the function.

Specified by:
quickCompute in interface ScalarFunction
Overrides:
quickCompute in class WaveDragAxisymmetric.AreaRule
Parameters:
x - the given input.
Returns:
the output corresponding to the given input.

quickCompute

public void quickCompute(cern.colt.matrix.DoubleMatrix2D mat,
                         cern.colt.matrix.DoubleMatrix1D outputs)
Description copied from class: BasicScalarFunction
Compute method without dimension checking, operating on DoubleMatrix2D and exploiting optimized operations therein.

Specified by:
quickCompute in interface ScalarFunction
Overrides:
quickCompute in class WaveDragAxisymmetric.AreaRule
Parameters:
mat - given matrix of inputs.
outputs - vector to store the result.