public class PolynomialFit
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
PolynomialFit.FitResult |
Constructor | Description |
---|---|
PolynomialFit() |
Modifier and Type | Method | Description |
---|---|---|
static double[] |
doFit(int order,
double[] x,
double[] y) |
Perform polynomial fit of the given order.
|
static double[] |
doFit(int order,
double[] x,
double[] y,
double[] w) |
Perform polynomial fit of the given order with the given weights (w).
|
static PolynomialFit.FitResult |
doFit(int order,
double[] x,
double[] y,
double[] w,
boolean doFitErr) |
|
static double |
getChi(double[] x,
double[] y,
double[] w,
double[] poly) |
Returns average relative deviation (relative to the uncertainty) of the
given fit from the given data.
|
static double[][] |
getFit(double[] x,
PolynomialFit.FitResult fr) |
|
static void |
main(java.lang.String[] args) |
public static double[] doFit(int order, double[] x, double[] y)
public static double[] doFit(int order, double[] x, double[] y, double[] w)
public static PolynomialFit.FitResult doFit(int order, double[] x, double[] y, double[] w, boolean doFitErr)
public static double[][] getFit(double[] x, PolynomialFit.FitResult fr)
public static double getChi(double[] x, double[] y, double[] w, double[] poly)
chi = (<(diff/error)^2>/N)^.5
public static void main(java.lang.String[] args)