Ticket #8109 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Implement Fullprof's polynomial background

Reported by: Wenduo Zhou Owned by: Wenduo Zhou
Priority: major Milestone: Release 3.0
Component: Diffraction Keywords:
Cc: Blocked By:
Blocking: Tester: Vickie Lynch

Description

Implement the polynomial background (Nba=0) defined in Fullprof.

Attachments

VUL_22946_Bkgd.dat (27.3 KB) - added by Wenduo Zhou 7 years ago.

Change History

comment:1 Changed 7 years ago by Wenduo Zhou

  • Status changed from new to inprogress

Starting to implement (not finished). Refs #8109.

Changeset: e9fb8043daed7f0d1b2b52bb48a406f11b3e1b8c

comment:2 Changed 7 years ago by Wenduo Zhou

Updated CMake. Refs #8109.

Changeset: 93a44423ee08b817abbb326570beb77bb416324c

comment:3 Changed 7 years ago by Wenduo Zhou

Made progress in implementation. Refs #8109.

Changeset: 9d2449b7e77e355e903498a857429b369fbd1130

comment:4 Changed 7 years ago by Wenduo Zhou

Fixed a bug and started implementing unit test. Refs #8109.

Changeset: 515a122bd3f8c67cd2843678b711d92a829fa3f5

comment:5 Changed 7 years ago by Wenduo Zhou

Added unit test. Refs #8109.

Changeset: e36640c933a8aea756e854a9efb14b89a64c281d

Changed 7 years ago by Wenduo Zhou

comment:6 Changed 7 years ago by Wenduo Zhou

  • Status changed from inprogress to verify
  • Resolution set to fixed

For Testers

The math of this background function can be found at http://www.mantidproject.org/PolynomialBackground.

Here is a simple way to see how the function works:

  1. Download attached data file. The data is from a Fullprof .prf file of a VULCAN Silicon run. The polynomial coefficients (listed below) are from the .pcr file.
  2. In MantidPlot, run 'LoadAscii' to load this data file.
  3. Launch fit interface on the loaded workspace;
  4. Add the background function 'FullprofPolynomial';
  5. Set the function as
    • n = 6
    • Bkpos = 11000.
    • A0 ~ A5 as 0.034, 0.027, -0.129, 0.161, -0.083, 0.015
  6. Evaluate the function. You can see how close the Fullprof result and Mantid result are.
  7. Fit the function. You should get a even better match while the refined coefficients should not have huge different from the input.
Last edited 7 years ago by Wenduo Zhou (previous) (diff)

comment:7 Changed 7 years ago by Vickie Lynch

  • Status changed from verify to verifying
  • Tester set to Vickie Lynch

comment:8 Changed 7 years ago by Vickie Lynch

  • Status changed from verifying to closed

Merge remote branch 'origin/feature/8109_new_fp_bkgd'

Full changeset: 497e64d1da087163c0bbcc29fd70ac75a9a362eb

comment:9 Changed 7 years ago by Nick Draper

  • Component changed from Framework to Diffraction

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8954

Note: See TracTickets for help on using tickets.