- Purpose
This app can be used to perform 2d peak fitting, and integrate each peak fitted data.
Features include:
- Perform surface/matrix fitting for 2d peak.
- Do integration for each peak's fitted data.
- Show preview by contour plot or colormap surface plot.
- Change each peak's center and width by typing value or resizing peak marker.
- ROI support.
- Multiple peak fit support.
- Baseline support for integration.
- Installation
Download the file "2D Peak Analysis.opx", and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps gallery window.
- Operation
- Activate a worksheet with XYZ data or a matrix.
- Click the app icon from Apps gallery window to start the app.
- If there are more than one XYZ data or matrix object, all valid datasets are listed in the dropbox. You can change accordingly.
- Change the preview plot you want, contour plot or colormap surface plot. Contour plot includes fitted curve.
- Switch to show peak marker to change peak's center and width, or to show ROI to change using data.
- Select peak type.
- Choose number of replicas.
- Choose which peak parker to show to manage this peak's center and width, or by changing the data in parameter table.
- Select baseline for integration.
- Change report settings.
- Reinit fitting.
- Get reduced chi-sqr value of current fit status.
- Perform one iteration of fitting.
- Perform fitting until converged, or until reaching maximum number of iteration (400), or until reaching the tolerance (1e-9).
- Generate report for all datasets.
- Dialog Settings
- Current Data: Select a data from all valid datasets.
- Preview: Which plot is used for preview, Contour or Colormap Surface. Contour includes the fitted curve.
- Show Rectangle: What rectangle to show on Contour preview. If show Peak Marker, you can resize and move the rectangle (Peak Marker) to change the peak's center and width for fitting. If show ROI, you can change the using data by resizing and moving this rectangle, and the data covered by this rectangle is used.
- Peak Type: Select a peak function for fitting.
- Number of Replicas: Specify number of replicas.
- Current Peak: When Contour is chosen for preview, and Peak Marker rectangle is shown, this is for specifying which peak's marker to display for operations.
- Baseline: Constant baseline value for integration, including Custom, Minimum, and Maximum.
- Baseline Z =: If Baseline is Custom, you can specify a value as constant baseline.
- Integration for Current Peak: This table shows the result of integration. The showing contents can be customized by clicking Report Settings button. The integration is performed for current peak, and the data is the fitted values calcuated using current peak's parameters. Please refer to 2D Integration Gadget for more information.
- Parameter for Peak Fitting: This table shows the fitting parameters. You can change the value for initialization, fix a parameter, specify bounds, or share parameters if number of replicas is not zero.
- Previous Data: Switch to the previous dataset.
- Next Data: Switch to the next dataset.
- Report Settings: Customize the output report items. For more details, please refer to NLFit Dialog and 2D Integration Gadget.
- Reinit: Reinit the fitting parameters.
- Chi-Sqr: Get reduced chi-sqr value of current fitting status.
- 1 Iter.: Perform one iteration of fitting, and update the values of table.
- Fit: Do fitting until converged, or until reaching maximum number of iteration (400), or until reaching the tolerance (1e-9).
- OK: Do the same thing as Fit button for the current data, and then output the report, only for current dataset, also for all other datasets if there is any.
- Cancel: Close the dialog without output anything.