## org.das2.math.QuadFitUtil

## polyfitw

polyfitw( double[] x, double[] y, double[] w, int degree ) → double[]

### Parameters

x - a double[]
y - a double[]
w - a double[]
degree - an int

### Returns:

double[]
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## quadHalfWidth

quadHalfWidth( double[] c, double dy ) → double

### Parameters

c - a double[]
dy - a double

### Returns:

double
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## quadPeak

quadPeak( double[] c ) → double

The peak of the quadradic. y = c0 + c1*x + c2x^2 dy/dx = c1 + 2*c2*x for dy/dx == 0, x = -c1/(2*c2)

### Parameters

c - a double[]

### Returns:

double
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## quadfit

quadfit( double[] x, double[] y, double[] w ) → double[]

### Parameters

x - a double[]
y - a double[]
w - a double[]

### Returns:

double[]
[search for examples] [view on GitHub] [view on old javadoc] [view source]