georegression.fitting.sphere
Class SphereToPointSignedDistance_F64
- java.lang.Object
-
- georegression.fitting.sphere.SphereToPointSignedDistance_F64
-
- All Implemented Interfaces:
- FunctionNtoM
public class SphereToPointSignedDistance_F64 extends java.lang.Object implements FunctionNtoM
Computes the signed Euclidean distance between a sphere and a set of points, seeDistance3D_F64.distance(georegression.struct.shapes.Sphere3D_F64, georegression.struct.point.Point3D_F64). SeeCodecSphere3D_F64for how the model is parametrized. For use in least-squares non-linear minimization.
-
-
Constructor Summary
Constructors Constructor and Description SphereToPointSignedDistance_F64()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetNumOfInputsN()Number of input elements.intgetNumOfOutputsM()Number of output elements.voidprocess(double[] input, double[] output)Processes the input to compute the values found in the output array.voidsetPoints(java.util.List<Point3D_F64> points)
-
-
-
Method Detail
-
setPoints
public void setPoints(java.util.List<Point3D_F64> points)
-
getNumOfInputsN
public int getNumOfInputsN()
Description copied from interface:FunctionNtoMNumber of input elements. Typically the parameters you are optimizing.- Specified by:
getNumOfInputsNin interfaceFunctionNtoM- Returns:
- number of input elements
-
getNumOfOutputsM
public int getNumOfOutputsM()
Description copied from interface:FunctionNtoMNumber of output elements. Typically the functions that are being optimized.- Specified by:
getNumOfOutputsMin interfaceFunctionNtoM- Returns:
- number of output elements
-
process
public void process(double[] input, double[] output)Description copied from interface:FunctionNtoMProcesses the input to compute the values found in the output array. The output's meaning depends on the application. For least-squares it is the residual error. SeeUnconstrainedLeastSquares.The user can modify the input parameters here and the optimizer must use those changes.
- Specified by:
processin interfaceFunctionNtoM- Parameters:
input- Parameters for input model.output- Storage for the output give the model.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG