Class Bern2D
- java.lang.Object
-
- com.singularsys.extexamples.applets.Bern2D
-
- Direct Known Subclasses:
Bern2D.NegBern2D,Bern2D.PosBern2D,Bern2D.ZeroBern2D
public class Bern2D extends java.lang.ObjectTwo dimension Bernstein polynimial for implicit plotter app.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBern2D.DerivBitssign bits for derivativesstatic classBern2D.NegBern2DAn always negative polynomialstatic classBern2D.PosBern2DAn always posative polynomialstatic classBern2D.QuadBernFour Bernstring polynomialsstatic classBern2D.TowerDerivatives of a polynomialstatic classBern2D.ZeroBern2DAn always zero polynomial
-
Field Summary
Fields Modifier and Type Field Description double[][]coeffsstatic Bern2D.NegBern2DnegBern2Dstatic Bern2D.QuadBernnegQuadstatic Bern2D.PosBern2DposBern2Dstatic Bern2D.QuadBernposQuadintxordintyordstatic Bern2D.ZeroBern2DzeroBern2D
-
Constructor Summary
Constructors Constructor Description Bern2D(int xord, int yord)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCoeff(int i, int j, double val)shortallOneSign()Test if all coefficient are strictly the same sign.Bern2DdiffX()Bern2DdiffY()doubleele2D(int i, int j)doubleevalbern2D(double[] vec)static Bern2DfromPolyCoeffs(double[][] aa, Range2D range)Note the order of x,y is reversed here.Bern2D.QuadBernreduce()voidsetCoeff(int i, int j, double coeff)static Bern2DsymetricDet2D(Bern2D a, Bern2D b, Bern2D c)java.lang.StringtoString()
-
-
-
Field Detail
-
xord
public int xord
-
yord
public int yord
-
coeffs
public double[][] coeffs
-
posBern2D
public static final Bern2D.PosBern2D posBern2D
-
negBern2D
public static final Bern2D.NegBern2D negBern2D
-
zeroBern2D
public static final Bern2D.ZeroBern2D zeroBern2D
-
negQuad
public static final Bern2D.QuadBern negQuad
-
posQuad
public static final Bern2D.QuadBern posQuad
-
-
Method Detail
-
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
public Bern2D diffX() throws JepException
- Throws:
JepException
-
diffY
public Bern2D diffY() throws JepException
- Throws:
JepException
-
reduce
public Bern2D.QuadBern reduce() throws JepException
- Throws:
JepException
-
fromPolyCoeffs
public static Bern2D fromPolyCoeffs(double[][] aa, Range2D range)
Note the order of x,y is reversed here.- Parameters:
aa-range-- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
evalbern2D
public double evalbern2D(double[] vec)
-
-