Ticket #93 (closed: fixed)

Opened 13 years ago

Last modified 5 years ago

Implement a Rebin Algorithm

Reported by: Nick Draper Owned by: Dickon Champion
Priority: major Milestone: Iteration 6
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

Look to the implmentations within LibISIS and opengenie for inspiration

Change History

comment:1 Changed 13 years ago by Dickon Champion

(In [754]) re #93

This is a simple routine to rebin a Workspace1D, it will be changed to rebin a workspace in general in due course. the inputs are simply xlo,delta,xhigh,distribution, which will be changed when the properties can be made to allow array Input

comment:2 Changed 13 years ago by Dickon Champion

(In [755]) re #93

small change needed fabs() not abs() on a function

comment:3 Changed 13 years ago by Dickon Champion

(In [759]) re #93

1) SimpleRebin generalised to be possible for Workspace1D or Workspace2D Input 2) required implementation of init() function which allocates memory and initializes all arrays to zero (X,Y,E,E2) 3) Workspace_sptr WorkspaceFactoryImpl::create(const std::string& className, const int& NVectors,

const int& XLength, const int& YLength) is now fully implemented and allocates memory for workspace1D, Workspace2D and

Managed Workspace2d, assumption is that Workspace1D will never be so long as to need a managed workspace, exception in place just in case

comment:4 Changed 13 years ago by Dickon Champion

(In [761]) re #93

fixed slight error with distribution/non-distribution calculation of errors

comment:5 Changed 13 years ago by Dickon Champion

(In [762]) re #93

implementing init() function in workspacefactory and property unit tests

comment:6 Changed 13 years ago by Dickon Champion

(In [787]) re #93

errors are calculated according to OPENgenie formulism, array input of rebin parameters using ArrayProperty definition with string input

will now do some test functions....

comment:7 Changed 13 years ago by Dickon Champion

(In [789]) re #93

errors other than gaussian cannot at the moment be calculated for rebin function, an appropriate error will be thrown a test function for the distribution/non-distribution workspaces1D/2D created for logarithmic and non-logarithmic binning combinations

comment:8 Changed 13 years ago by Dickon Champion

  • Status changed from new to closed
  • Resolution set to fixed

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 941

Note: See TracTickets for help on using tickets.