Package de.gsi.math.functions
Class EllipseFunction
- java.lang.Object
-
- de.gsi.math.functions.AbstractFunction
-
- de.gsi.math.functions.EllipseFunction
-
- All Implemented Interfaces:
Function,FunctionND
public class EllipseFunction extends AbstractFunction implements FunctionND
-
-
Field Summary
-
Fields inherited from class de.gsi.math.functions.AbstractFunction
fitterMode, fparameter, fparameterCopy, fparameterFixed, fparameterMax, fparameterMin, fparameterName
-
-
Constructor Summary
Constructors Constructor Description EllipseFunction(java.lang.String name, int nparm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<de.gsi.dataset.spi.utils.DoublePoint>calculateEllipse(double centerX, double centerY, double halfAxisA, double halfAxisB, double angle, double steps)java.lang.StringgetID()intgetInputDimension()intgetOutputDimension()double[]getValue(double[] x)doublegetValue(double[] x, int i)-
Methods inherited from class de.gsi.math.functions.AbstractFunction
addFunction, addListener, clearParameterValues, fixParameter, getFreeParameterCount, getFunctions, getName, getParameterCount, getParameterName, getParameterRangeMaximum, getParameterRangeMinimum, getParameterValue, getParameterValues, invokeListener, isFitterMode, isParameterFixed, printParameters, printParameters, removeFunction, removeListener, setFitterMode, setParameterCount, setParameterName, setParameterRange, setParameterValue, setParameterValues
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.gsi.math.functions.Function
clearParameterValues, fixParameter, getFreeParameterCount, getName, getParameterCount, getParameterName, getParameterRangeMaximum, getParameterRangeMinimum, getParameterValue, isFitterMode, isParameterFixed, setFitterMode, setParameterCount, setParameterName, setParameterRange, setParameterValue, setParameterValues
-
-
-
-
Method Detail
-
getID
public java.lang.String getID()
- Specified by:
getIDin interfaceFunction- Overrides:
getIDin classAbstractFunction- Returns:
- unique function ID
-
getInputDimension
public int getInputDimension()
- Specified by:
getInputDimensionin interfaceFunction- Returns:
- the input dimension of the function
-
getOutputDimension
public int getOutputDimension()
- Specified by:
getOutputDimensionin interfaceFunction- Returns:
- the output dimension of the function
-
getValue
public double[] getValue(double[] x)
- Specified by:
getValuein interfaceFunctionND- Parameters:
x- input parameter array- Returns:
- array of function values
-
getValue
public double getValue(double[] x, int i)- Specified by:
getValuein interfaceFunctionND- Parameters:
x- input parameter arrayi- output index- Returns:
- value of function
-
calculateEllipse
public static java.util.List<de.gsi.dataset.spi.utils.DoublePoint> calculateEllipse(double centerX, double centerY, double halfAxisA, double halfAxisB, double angle, double steps)
-
-