|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ShapeFunction ShapeWavePacket
ShapeWavePacket -- A Wave Packet function
Solution.discretize(ShapeFunction)
Field Summary |
Fields inherited from class ShapeFunction |
amplitude_, position_, wavelength_, width_ |
Constructor Summary | |
ShapeWavePacket(double amplitude,
double position,
double width,
double wavelength)
Creates an instance of the class |
Method Summary | |
double |
getSampling(Mesh mesh,
int index)
Returns initial distribution of samplers |
double |
getValue(Mesh mesh,
int index)
Evaluates the square of the norm |
Complex |
getValueC(Mesh mesh,
int index)
Evaluates the shape on a discrete mesh point position. |
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 |
Constructor Detail |
public ShapeWavePacket(double amplitude, double position, double width, double wavelength)
amplitude
- The wave packet amplitudewidth
- The localizationposition
- The absissaMethod Detail |
public boolean isComplex()
isComplex
in class ShapeFunction
public Complex getValueC(Mesh mesh, int index)
getValueC
in class ShapeFunction
mesh
- The mesh coordinatesindex
- The mesh index
public double getValue(Mesh mesh, int index)
getValue
in class ShapeFunction
mesh
- The mesh coordinatesindex
- The mesh index
public double getSampling(Mesh mesh, int index)
getSampling
in class ShapeFunction
mesh
- The mesh coordinatesindex
- The mesh index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |