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_akPoint
private double[]
m_fError
private int
m_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 void
AnglesToMatrix(float[] afAngle, Matrix3f rkR)
double
cost(double[] fT, double[] afData)
double
cost(double fT, double[] afData)
float
Energy(double[] afV)
private static void
InitialGuess(int iQuantity, java.util.Vector<Vector3f> akPoint, Vector3f rkU, Matrix3f rkR, float[] afD)
private static void
MatrixToAngles(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:
cost
in interfacePowellCostFunction
-
cost
public double cost(double[] fT, double[] afData)
- Specified by:
cost
in interfacePowellCostFunction
-
-