Package georegression.struct.curve
Class PolynomialCubic1D_F32
java.lang.Object
georegression.struct.curve.PolynomialCubic1D_F32
- All Implemented Interfaces:
PolynomialCurve_F32,MapFormattable
@Generated("georegression.struct.curve.PolynomialCubic1D_F64")
public class PolynomialCubic1D_F32
extends Object
implements PolynomialCurve_F32
Quadratic curve in 1D: f(x) = a + bx + c x2 + d x3
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.floatevaluate(float t) formatMap(MapPrintFormat format) floatget(int coefficient) voidset(int coefficient, float value) setTo(float a, float b, float c, float d) 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 float aCoefficients -
b
public float bCoefficients -
c
public float cCoefficients -
d
public float dCoefficients
-
-
Constructor Details
-
PolynomialCubic1D_F32
public PolynomialCubic1D_F32() -
PolynomialCubic1D_F32
public PolynomialCubic1D_F32(float a, float b, float c, float d)
-
-
Method Details
-
evaluate
public float evaluate(float t) -
setTo
-
setTo
-
zero
public void zero()Description copied from interface:PolynomialCurve_F32Sets all coefficients to zero- Specified by:
zeroin interfacePolynomialCurve_F32
-
toString
-
get
public float get(int coefficient) - Specified by:
getin interfacePolynomialCurve_F32
-
set
public void set(int coefficient, float value) - Specified by:
setin interfacePolynomialCurve_F32
-
formatMap
- Specified by:
formatMapin interfaceMapFormattable
-
size
public int size()Description copied from interface:PolynomialCurve_F32Number of coeffients- Specified by:
sizein interfacePolynomialCurve_F32
-
degree
public int degree()Description copied from interface:PolynomialCurve_F32Polynomial's degree. This is the number of coefficients minus one.- Specified by:
degreein interfacePolynomialCurve_F32
-