|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ShapeFunction
Abstract class for a describing initial shapes
Solution.discretize(ShapeFunction)
Field Summary | |
protected double |
amplitude_
The shape's vertical scale |
protected double |
position_
The shape's abscissa |
protected double |
wavelength_
The shape's shorter scale |
protected double |
width_
The shape's horizontal scale |
Constructor Summary | |
ShapeFunction()
|
Method Summary | |
abstract double |
getSampling(Mesh mesh,
int index)
Returns initial distribution of samplers |
abstract double |
getValue(Mesh mesh,
int index)
Evaluates the shape on a discrete mesh point position. |
abstract Complex |
getValueC(Mesh mesh,
int index)
Evaluates the shape on a discrete mesh point position. |
abstract boolean |
isComplex()
Test if the function is complex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double amplitude_
protected double width_
protected double position_
protected double wavelength_
Constructor Detail |
public ShapeFunction()
Method Detail |
public abstract boolean isComplex()
public abstract double getValue(Mesh mesh, int index)
mesh
- The mesh coordinatesindex
- The mesh index
public abstract Complex getValueC(Mesh mesh, int index)
mesh
- The mesh coordinatesindex
- The mesh index
public abstract double getSampling(Mesh mesh, int index)
mesh
- The mesh coordinatesindex
- The mesh index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |