|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opengts.util.CurveFit
public class CurveFit
Curve-fit profile matrix
Nested Class Summary | |
---|---|
static class |
CurveFit.Precision
Precision Enum |
Field Summary | |
---|---|
static java.lang.String[] |
ARG_POINTS
|
static java.lang.String[] |
ARG_PRECISION
|
static java.lang.String[] |
ARG_VALUE
|
protected java.math.MathContext |
bdMathCtx
|
protected java.math.BigDecimal[] |
bigCoeff
|
protected double[] |
dblCoeff
|
protected XYPair |
maxXY
|
protected XYPair |
minXY
|
protected CurveFit.Precision |
precision
|
static java.lang.String |
PROP_CurveFit_defaultPrecision
|
protected XYPair[] |
XY
|
Constructor Summary | |
---|---|
protected |
CurveFit()
Protected constructor. |
|
CurveFit(CurveFit cf)
Clone constructor (deep copy) |
|
CurveFit(java.lang.String xyListStr)
String constructor |
|
CurveFit(java.lang.String xyListStr,
CurveFit.Precision P)
String constructor |
|
CurveFit(XYPair[] xy)
XYPair constructor |
|
CurveFit(XYPair[] xy,
CurveFit.Precision P)
XYPair constructor |
Method Summary | |
---|---|
protected static java.math.BigDecimal[] |
_CalculateCoefficients(java.math.BigDecimal[][] M,
java.math.BigDecimal[] V,
java.math.MathContext mc)
Calculates the polynomial coefficients as "BigDecimal" values |
protected static double[] |
_CalculateCoefficients(double[][] M,
double[] V)
Calculates the polynomial coefficients as "double" values |
double |
FTN(double X)
Returns the value of Y based on the specified value for X. |
static CurveFit.Precision |
GetDefaultPrecision(int pointSize)
Gets the default precision type |
double |
getMaximumX()
Gets the maximum "X" value |
double |
getMinimumX()
Gets the minimum "X" value |
static CurveFit.Precision |
GetPrecisionByName(java.lang.String name,
CurveFit.Precision dft)
Parses the specified precision type string |
double |
getRangeX()
Gets the range of X |
boolean |
isValid()
Returns true if this CurveFit is valid |
static boolean |
isValid(CurveFit cf)
Returns true if the specified CurveFit is valid |
static void |
main(java.lang.String[] argv)
|
static XYPair[] |
ParseXYPair(java.lang.String xyListStr)
Parse XY pair list. |
static XYPair[] |
ParseXYPair(java.lang.String xyListStr,
int fromNdx)
Parse XY pair list. |
void |
print(java.lang.String msg,
double[][] M,
double[] V)
(Debug) Prints the matrix, values, and coefficients (for debug purposes only) |
int |
size()
Returns the size of this CurveFit |
java.lang.String |
toString()
Gets a String representation of this instance |
java.lang.StringBuffer |
toString(java.lang.StringBuffer sb,
java.lang.String fmt)
Gets a String representation of this instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_CurveFit_defaultPrecision
protected XYPair[] XY
protected XYPair minXY
protected XYPair maxXY
protected CurveFit.Precision precision
protected double[] dblCoeff
protected java.math.BigDecimal[] bigCoeff
protected java.math.MathContext bdMathCtx
public static final java.lang.String[] ARG_POINTS
public static final java.lang.String[] ARG_VALUE
public static final java.lang.String[] ARG_PRECISION
Constructor Detail |
---|
protected CurveFit()
public CurveFit(CurveFit cf)
public CurveFit(XYPair[] xy)
public CurveFit(XYPair[] xy, CurveFit.Precision P)
public CurveFit(java.lang.String xyListStr)
public CurveFit(java.lang.String xyListStr, CurveFit.Precision P)
Method Detail |
---|
public static CurveFit.Precision GetDefaultPrecision(int pointSize)
public static CurveFit.Precision GetPrecisionByName(java.lang.String name, CurveFit.Precision dft)
public static XYPair[] ParseXYPair(java.lang.String xyListStr)
public static XYPair[] ParseXYPair(java.lang.String xyListStr, int fromNdx)
protected static double[] _CalculateCoefficients(double[][] M, double[] V)
protected static java.math.BigDecimal[] _CalculateCoefficients(java.math.BigDecimal[][] M, java.math.BigDecimal[] V, java.math.MathContext mc)
public boolean isValid()
public static boolean isValid(CurveFit cf)
public double getMinimumX()
public double getMaximumX()
public double getRangeX()
public int size()
public double FTN(double X)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.StringBuffer toString(java.lang.StringBuffer sb, java.lang.String fmt)
public void print(java.lang.String msg, double[][] M, double[] V)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |