public class FitParabola
extends java.lang.Object
Constructor and Description |
---|
FitParabola() |
Modifier and Type | Method and Description |
---|---|
static double[] |
fitParabola(double[] vals)
Fits a parabola (a + bx + cx^2) to series of values (vals).
|
static double[] |
fitParabolaFixedExtremum(double[] vals,
int xm)
Fits a parabola (a + bx + cx^2) to series of values (vals), but under the restriction that
the appex has to occur at the x=xm
For the peak fitting purpose intended, xm should be in the interval 0 ..
|
static double[] |
fitParabolaFixedExtremum(double[] vals,
int xm,
boolean force_xm_in_array_domain)
Fits a parabola (a + bx + cx^2) to series of values (vals), but under the restriction that
the appex has to occur at the x=xm
|
public static double[] fitParabola(double[] vals)
vals
- Array of values defining the parabola to be fittedpublic static double[] fitParabolaFixedExtremum(double[] vals, int xm)
vals
- Array of values defining the parabola to be fittedxm
- Force location of the apex of the parabola.public static double[] fitParabolaFixedExtremum(double[] vals, int xm, boolean force_xm_in_array_domain)
vals
- Array of values defining the parabola to be fittedxm
- Force location of the apex of the parabola.force_xm_in_array_domain
- Force xm to be in the interval 0 .. length(vals)-1 ?