Package gov.nih.mipav.model.structures
Class RealPolynomial
- java.lang.Object
-
- gov.nih.mipav.model.structures.RealPolynomial
-
public class RealPolynomial extends java.lang.Object
- Version:
- 0.1 April 28, 2014
- Author:
- William Gandler This a a port of vnl_real_polynomial.h and vnl_real_polynomial.cxx.
-
-
Field Summary
Fields Modifier and Type Field Description private double[]
coeff
-
Constructor Summary
Constructors Constructor Description RealPolynomial(double a)
RealPolynomial(double[] a)
RealPolynomial(RealPolynomial a)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealPolynomial
add(RealPolynomial y)
RealPolynomial
derivative()
(package private) double
evaluate(double x)
void
finalize()
Prepares this class for destruction.double[]
getCoefficients()
RealPolynomial
multiply(RealPolynomial y)
private RealPolynomial
selfAdd(RealPolynomial y)
private RealPolynomial
selfMultiply(RealPolynomial y)
-
-
-
Constructor Detail
-
RealPolynomial
public RealPolynomial(double a)
-
RealPolynomial
public RealPolynomial(double[] a)
-
RealPolynomial
public RealPolynomial(RealPolynomial a)
-
-
Method Detail
-
multiply
public RealPolynomial multiply(RealPolynomial y)
-
selfMultiply
private RealPolynomial selfMultiply(RealPolynomial y)
-
add
public RealPolynomial add(RealPolynomial y)
-
selfAdd
private RealPolynomial selfAdd(RealPolynomial y)
-
evaluate
double evaluate(double x)
-
derivative
public RealPolynomial derivative()
-
getCoefficients
public double[] getCoefficients()
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalize
in classjava.lang.Object
-
-