Class ApprEllipsoidFit3f
- java.lang.Object
-
- WildMagic.LibFoundation.Approximation.ApprEllipsoidFit3f
-
- All Implemented Interfaces:
PowellCostFunction
public class ApprEllipsoidFit3f extends java.lang.Object implements PowellCostFunction
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<Vector3f>m_akPointprivate double[]m_fErrorprivate intm_iQuantity
-
Constructor Summary
Constructors Constructor Description ApprEllipsoidFit3f(int iQuantity, java.util.Vector<Vector3f> akPoint, Vector3f rkU, Matrix3f rkR, float[] afD)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidAnglesToMatrix(float[] afAngle, Matrix3f rkR)doublecost(double[] fT, double[] afData)doublecost(double fT, double[] afData)floatEnergy(double[] afV)private static voidInitialGuess(int iQuantity, java.util.Vector<Vector3f> akPoint, Vector3f rkU, Matrix3f rkR, float[] afD)private static voidMatrixToAngles(Matrix3f rkR, float[] afAngle)
-
-
-
Field Detail
-
m_iQuantity
private int m_iQuantity
-
m_akPoint
private java.util.Vector<Vector3f> m_akPoint
-
m_fError
private double[] m_fError
-
-
Method Detail
-
InitialGuess
private static void InitialGuess(int iQuantity, java.util.Vector<Vector3f> akPoint, Vector3f rkU, Matrix3f rkR, float[] afD)
-
Energy
public float Energy(double[] afV)
-
MatrixToAngles
private static void MatrixToAngles(Matrix3f rkR, float[] afAngle)
-
AnglesToMatrix
private static void AnglesToMatrix(float[] afAngle, Matrix3f rkR)
-
cost
public double cost(double fT, double[] afData)- Specified by:
costin interfacePowellCostFunction
-
cost
public double cost(double[] fT, double[] afData)- Specified by:
costin interfacePowellCostFunction
-
-