public class SlopeInterceptLineFitter extends Object
Modifier and Type | Field and Description |
---|---|
private SlopeInterceptLineFit |
_fit |
Constructor and Description |
---|
SlopeInterceptLineFitter()
Creates a new instance of SlopeInterceptLineFitter
|
Modifier and Type | Method and Description |
---|---|
boolean |
fit(double[] x,
double[] y,
double[] sigma_y,
int n)
Perform the fit.
|
SlopeInterceptLineFit |
getFit()
Return the fit.
|
private SlopeInterceptLineFit _fit
public SlopeInterceptLineFitter()
public boolean fit(double[] x, double[] y, double[] sigma_y, int n)
x
- The array of independent variables.y
- The array of dependent variables.sigma_y
- The array of uncertainties on the dependent variables.n
- The number of points to fitpublic SlopeInterceptLineFit getFit()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.