Package xal.extension.wirescan.apputils
Class GaussFitter
java.lang.Object
xal.extension.wirescan.apputils.GaussFitter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfitAgain(WireScanData wsD) Fit for both planes X and Y without initial guessbooleanfitAgainX(WireScanData wsD) Fit for X plane without initial guessbooleanfitAgainY(WireScanData wsD) Fit for Y plane without initial guessvoidgetGraphPoints(int nGraphPoints) Returns the number of graph points in the fitting curvevoidgetIterations(int nIterations) Returns the number of iterations during the fittingdoubleReturns the width coefficient for fitting.booleanguessAndFit(WireScanData wsD) Guess initial Gauss parameters and fit for both planes: X and YbooleanguessAndFitX(WireScanData wsD) Guess initial Gauss parameters and fit for X planebooleanguessAndFitY(WireScanData wsD) Guess initial Gauss parameters and fit for Y planevoidsetGraphPoints(int nGraphPoints) Sets the number of graph points in the fitting curvevoidsetIterations(int nIterations) Sets the number of iterations diring the fittingvoidsetVariablesOn(boolean[] fitOnArr) Stes the variables that will be used in fitting.voidsetWidthCoeff(double wCoeff) Sets the width coefficient for fitting.
-
Constructor Details
-
GaussFitter
public GaussFitter()
-
-
Method Details
-
setVariablesOn
public void setVariablesOn(boolean[] fitOnArr) Stes the variables that will be used in fitting. The input parameter is an 4-elements boolean array with true or false for the base line, center position, sigma, and amplitude of the Gaussian approximation. -
guessAndFit
Guess initial Gauss parameters and fit for both planes: X and Y -
fitAgain
Fit for both planes X and Y without initial guess -
guessAndFitX
Guess initial Gauss parameters and fit for X plane -
guessAndFitY
Guess initial Gauss parameters and fit for Y plane -
fitAgainX
Fit for X plane without initial guess -
fitAgainY
Fit for Y plane without initial guess -
setIterations
public void setIterations(int nIterations) Sets the number of iterations diring the fitting -
setGraphPoints
public void setGraphPoints(int nGraphPoints) Sets the number of graph points in the fitting curve -
setWidthCoeff
public void setWidthCoeff(double wCoeff) Sets the width coefficient for fitting. The fit will use - wCoeff*sigma : + wCoeff*sigma region around pick for fitting -
getIterations
public void getIterations(int nIterations) Returns the number of iterations during the fitting -
getGraphPoints
public void getGraphPoints(int nGraphPoints) Returns the number of graph points in the fitting curve -
getWidthCoeff
public double getWidthCoeff()Returns the width coefficient for fitting. The fit will use - wCoeff*sigma : + wCoeff*sigma region around pick for fitting
-