Class Bern2D
java.lang.Object
com.singularsys.extexamples.applets.Bern2D
- Direct Known Subclasses:
Bern2D.NegBern2D,Bern2D.PosBern2D,Bern2D.ZeroBern2D
Two dimension Bernstein polynomial for implicit plotter app.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classsign bits for derivativesstatic classAn always negative polynomialstatic classAn always positive polynomialstatic classFour Bernstein polynomialsstatic classDerivatives of a polynomialstatic classAn always zero polynomial -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double[][]static final Bern2D.NegBern2Dstatic final Bern2D.QuadBernstatic final Bern2D.PosBern2Dstatic final Bern2D.QuadBernfinal intfinal intstatic final Bern2D.ZeroBern2D -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddCoeff(int i, int j, double val) shortTest if all coefficient are strictly the same sign.diffX()diffY()final doubleele2D(int i, int j) doubleevalbern2D(double[] vec) static Bern2DfromPolyCoeffs(double[][] aa, Range2D range) Note the order of x,y is reversed here.reduce()final voidsetCoeff(int i, int j, double coeff) static Bern2DsymmetricDet2D(Bern2D a, Bern2D b, Bern2D c) toString()
-
Field Details
-
xord
public final int xord -
yord
public final int yord -
coeffs
public final double[][] coeffs -
posBern2D
-
negBern2D
-
zeroBern2D
-
negQuad
-
posQuad
-
-
Constructor Details
-
Bern2D
public Bern2D(int xord, int yord)
-
-
Method Details
-
setCoeff
public final void setCoeff(int i, int j, double coeff) -
addCoeff
public final void addCoeff(int i, int j, double val) -
ele2D
public final double ele2D(int i, int j) -
allOneSign
public short allOneSign()Test if all coefficient are strictly the same sign.- Returns:
- tree if all positive or all negative false otherwise
-
diffX
- Throws:
JepException
-
diffY
- Throws:
JepException
-
reduce
- Throws:
JepException
-
fromPolyCoeffs
Note the order of x,y is reversed here.- Parameters:
aa-range-- Returns:
-
toString
-
symmetricDet2D
-
evalbern2D
public double evalbern2D(double[] vec)
-