|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--SquareWell
A function which is constantly zero, except for exactly one finite interval, in which it takes a single different constant value (the "depth").
| Field Summary | |
static double |
DEFAULT_DEPTH
|
static double |
DEFAULT_SHIFT
|
static double |
DEFAULT_WIDTH
|
protected double |
depth
|
protected double |
shift
|
protected double |
width
|
| Constructor Summary | |
SquareWell()
Creates a new square well function, centred on the origin, with default width and depth. |
|
SquareWell(double depth)
Creates a new square well function, centred on the origin, with default width. |
|
SquareWell(double depth,
double width)
Creates a new square well function, centred on the origin. |
|
SquareWell(double depth,
double width,
double shift)
Creates a new square well function |
|
| Method Summary | |
double |
evaluate(double x)
|
double |
getDepth()
Returns the depth of the well |
double |
getLeft()
Returns the x coordinate of the left-hand edge of the well |
double[] |
getMarkers(double minX,
double minY)
Returns an array containing x coordinates of all discontinuities within the specified interval. |
double |
getRight()
Returns the x coordinate of the right-hand edge of the well |
double |
getShift()
Returns the x coordinate of the centre of the well |
double |
getWidth()
Returns the width of the well |
void |
setDepth(double d)
Sets the width of the well |
void |
setShift(double d)
Sets the width of the well |
void |
setWidth(double d)
Sets the width of the well |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected double depth
protected double width
protected double shift
public static final double DEFAULT_DEPTH
public static final double DEFAULT_WIDTH
public static final double DEFAULT_SHIFT
| Constructor Detail |
public SquareWell(double depth,
double width,
double shift)
depth - The depth of the wellwidth - The width of the wellshift - The x coordinate of the centre of the well
public SquareWell(double depth,
double width)
depth - The depth of the wellwidth - The width of the wellpublic SquareWell(double depth)
depth - The depth of the wellpublic SquareWell()
| Method Detail |
public double evaluate(double x)
public double[] getMarkers(double minX,
double minY)
public double getDepth()
public double getWidth()
public double getShift()
public double getLeft()
public double getRight()
public void setWidth(double d)
public void setDepth(double d)
public void setShift(double d)
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||