- java.lang.Object
-
- org.scijava.ops.image.features.zernike.Polynom
-
public class Polynom extends Object
class used to represent a zernike moment polynomial.- Author:
- Andreas Graumann (University of Konstanz)
-
-
Constructor Summary
Constructors Constructor Description Polynom(int degree)default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevaluate(double x)return the value of the polynom in a given point.intgetCoefficient(int pos)return the coefficient at a given position.voidsetCoefficient(int pos, int coef)set the coefficient at a position.StringtoString()provide a String representation of this polynom.
-
-
-
Method Detail
-
setCoefficient
public void setCoefficient(int pos, int coef)set the coefficient at a position.- Parameters:
pos- the position (the power of the monom)coef- the coefficient
-
getCoefficient
public int getCoefficient(int pos)
return the coefficient at a given position.- Parameters:
pos- the position- Returns:
- the coefficient
-
evaluate
public double evaluate(double x)
return the value of the polynom in a given point.- Parameters:
x- the point- Returns:
- the value of the polynom
-
-