Class ElasticLineReductionModel
java.lang.Object
org.eclipse.dawnsci.analysis.api.processing.model.AbstractOperationModel
uk.ac.diamond.scisoft.analysis.processing.operations.rixs.RixsBaseModel
uk.ac.diamond.scisoft.analysis.processing.operations.rixs.ElasticLineReductionModel
- All Implemented Interfaces:
IOperationModel
Model for fitting elastic line in RIXS images
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.diamond.scisoft.analysis.processing.operations.rixs.RixsBaseModel
RixsBaseModel.ENERGY_DIRECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()intgetDelta()doubledoubleintintdoublebooleanvoidsetDelta(int delta) voidsetFitQuadratic(boolean fitQuadratic) voidsetMaxDev(double maxDev) voidsetMaxSlope(double maxSlope) voidsetMinPhotons(int minPhotons) voidsetMinPoints(int minPoints) voidsetPeakFittingFactor(double peakFittingFactor) Methods inherited from class uk.ac.diamond.scisoft.analysis.processing.operations.rixs.RixsBaseModel
getCountsPerPhoton, getCutoff, getCutoffSize, getEnergyDirection, getEnergyIndex, getRoiA, getRoiB, getSlopeOverride, isClipSpectra, isCropROI, isUseCutoff, setClipSpectra, setCountsPerPhoton, setCropROI, setCutoff, setCutoffSize, setEnergyDirection, setEnergyIndex, setRoiA, setRoiB, setSlopeOverride, setUseCutoffMethods inherited from class org.eclipse.dawnsci.analysis.api.processing.model.AbstractOperationModel
addPropertyChangeListener, addPropertyChangeListener, createMacroCommands, firePropertyChange, get, getFieldWithUpperCaseFirstLetter, isModelField, removePropertyChangeListener, removePropertyChangeListener, set
-
Constructor Details
-
ElasticLineReductionModel
public ElasticLineReductionModel()
-
-
Method Details
-
getDelta
public int getDelta()- Returns:
- width of strip to use to find elastic line
-
setDelta
public void setDelta(int delta) -
isFitQuadratic
public boolean isFitQuadratic()- Returns:
- true to a quadratic expression for dispersion (intercept vs energy)
-
setFitQuadratic
public void setFitQuadratic(boolean fitQuadratic) -
getMaxSlope
public double getMaxSlope()- Returns:
- maximum slope to constrain straight line fit
-
setMaxSlope
public void setMaxSlope(double maxSlope) -
getMaxDev
public double getMaxDev()- Returns:
- maximum deviation allowed; used to prune outliers
-
setMaxDev
public void setMaxDev(double maxDev) -
getMinPoints
public int getMinPoints()- Returns:
- minimum number of points allowed for a valid straight line fit
-
setMinPoints
public void setMinPoints(int minPoints) -
getMinPhotons
public int getMinPhotons() -
setMinPhotons
public void setMinPhotons(int minPhotons) - Parameters:
minimum- number of photons required before attempting to find elastic line
-
getPeakFittingFactor
public double getPeakFittingFactor()- Returns:
- factor used to select range of points to fit elastic peak. The range is initial peak position +/- factor * initial FHWM
-
setPeakFittingFactor
public void setPeakFittingFactor(double peakFittingFactor) -
copy
-