Package georegression.struct.curve
Class PolynomialQuadratic1D_F64
java.lang.Object
georegression.struct.curve.PolynomialQuadratic1D_F64
- All Implemented Interfaces:
PolynomialCurve_F64,MapFormattable
Quadratic curve in 1D: f(x) = a + bx + c x2.
NOTE: The coefficient order is the reverse of what you will find for sake of consistency as the order of the polynomial is increased.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdegree()Polynomial's degree.doubleevaluate(double t) formatMap(MapPrintFormat format) doubleget(int coefficient) voidset(int coefficient, double value) setTo(double a, double b, double c) intsize()Number of coeffientstoString()voidzero()Sets all coefficients to zeroMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ejml.MapFormattable
formatMap
-
Field Details
-
a
public double aCoefficients -
b
public double bCoefficients -
c
public double cCoefficients
-
-
Constructor Details
-
PolynomialQuadratic1D_F64
public PolynomialQuadratic1D_F64() -
PolynomialQuadratic1D_F64
public PolynomialQuadratic1D_F64(double a, double b, double c)
-
-
Method Details
-
evaluate
public double evaluate(double t) -
setTo
-
setTo
-
get
public double get(int coefficient) - Specified by:
getin interfacePolynomialCurve_F64
-
set
public void set(int coefficient, double value) - Specified by:
setin interfacePolynomialCurve_F64
-
size
public int size()Description copied from interface:PolynomialCurve_F64Number of coeffients- Specified by:
sizein interfacePolynomialCurve_F64
-
degree
public int degree()Description copied from interface:PolynomialCurve_F64Polynomial's degree. This is the number of coefficients minus one.- Specified by:
degreein interfacePolynomialCurve_F64
-
zero
public void zero()Description copied from interface:PolynomialCurve_F64Sets all coefficients to zero- Specified by:
zeroin interfacePolynomialCurve_F64
-
formatMap
- Specified by:
formatMapin interfaceMapFormattable
-
toString
-