public class Peak extends Object implements Comparable
Constructor and Description |
---|
Peak(double position,
double area,
double width)
Creates new Peak assuming no uncertainty in values.
|
Peak(double p,
double pe,
double a,
double ae,
double w,
double we)
Generates a peak with error bars on its parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object p1) |
double |
getArea() |
double |
getAreaError() |
double |
getPosition() |
double |
getPositionError() |
double |
getWidth() |
double |
getWidthError() |
void |
setArea(double a) |
void |
setArea(double a,
double e) |
void |
setPosition(double p) |
void |
setPosition(double p,
double e) |
void |
setWidth(double w) |
void |
setWidth(double w,
double e) |
String |
toString() |
public Peak(double position, double area, double width)
position
- position of the peak centroidarea
- total peak areawidth
- Full width at half max of the peakpublic Peak(double p, double pe, double a, double ae, double w, double we)
p
- position of peak centroidpe
- error on positiona
- area of peakae
- uncertainty in areaw
- FWHM of peakwe
- uncertainty in FWHMpublic double getPosition()
public double getArea()
public double getWidth()
public double getPositionError()
public double getAreaError()
public double getWidthError()
public void setPosition(double p)
public void setPosition(double p, double e)
public void setArea(double a)
public void setArea(double a, double e)
public void setWidth(double w)
public void setWidth(double w, double e)
public int compareTo(Object p1)
compareTo
in interface Comparable
SCaVis 1.0 ©