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.Object
Two dimension Bernstein polynimial for implicit plotter app.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Bern2D.DerivBits
sign bits for derivativesstatic class
Bern2D.NegBern2D
An always negative polynomialstatic class
Bern2D.PosBern2D
An always posative polynomialstatic class
Bern2D.QuadBern
Four Bernstring polynomialsstatic class
Bern2D.Tower
Derivatives of a polynomialstatic class
Bern2D.ZeroBern2D
An always zero polynomial
-
Field Summary
Fields Modifier and Type Field Description double[][]
coeffs
static Bern2D.NegBern2D
negBern2D
static Bern2D.QuadBern
negQuad
static Bern2D.PosBern2D
posBern2D
static Bern2D.QuadBern
posQuad
int
xord
int
yord
static Bern2D.ZeroBern2D
zeroBern2D
-
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 void
addCoeff(int i, int j, double val)
short
allOneSign()
Test if all coefficient are strictly the same sign.Bern2D
diffX()
Bern2D
diffY()
double
ele2D(int i, int j)
double
evalbern2D(double[] vec)
static Bern2D
fromPolyCoeffs(double[][] aa, Range2D range)
Note the order of x,y is reversed here.Bern2D.QuadBern
reduce()
void
setCoeff(int i, int j, double coeff)
static Bern2D
symetricDet2D(Bern2D a, Bern2D b, Bern2D c)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
evalbern2D
public double evalbern2D(double[] vec)
-
-