Improve extrapolation beyond range of supplied attenuation profile
Previously, if an attenuation factor was requested for a lambda that is outside the range of an explicit attenuation profile the code extrapolated based on the gradient of the two most extreme points. If the data was noisy this gave some poor results. Improve this by falling back on the tabulated linear absorption coefficient of an optional ExtrapolationMaterial
Showing
- Framework/Kernel/inc/MantidKernel/AttenuationProfile.h 6 additions, 3 deletionsFramework/Kernel/inc/MantidKernel/AttenuationProfile.h
- Framework/Kernel/inc/MantidKernel/Material.h 3 additions, 0 deletionsFramework/Kernel/inc/MantidKernel/Material.h
- Framework/Kernel/src/AttenuationProfile.cpp 32 additions, 3 deletionsFramework/Kernel/src/AttenuationProfile.cpp
- Framework/Kernel/src/Material.cpp 16 additions, 7 deletionsFramework/Kernel/src/Material.cpp
- Framework/Kernel/src/MaterialBuilder.cpp 2 additions, 1 deletionFramework/Kernel/src/MaterialBuilder.cpp
- Framework/Kernel/test/AttenuationProfileTest.h 24 additions, 6 deletionsFramework/Kernel/test/AttenuationProfileTest.h
Please register or sign in to comment