Skip to content

Commit

Permalink
More on LeBailFit. Refs #5306.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Aug 16, 2012
1 parent 57a6329 commit 05756a5
Show file tree
Hide file tree
Showing 3 changed files with 407 additions and 132 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ namespace CurveFitting
/// Do 1 iteration in Le Bail fit
bool unitLeBailFit(size_t workspaceindex, std::map<std::string, std::pair<double, char> >& parammap);

/// Set up Lebail
void setLeBailFitParameters();

/// Do 1 fit on LeBailFunction
bool fitLeBailFunction(size_t workspaceindex, std::map<std::string, std::pair<double, char> > &parammap);

/// Calculate Peaks' Intensities
void calculatePeaksHeights(size_t workspaceindex);

Expand All @@ -122,11 +128,20 @@ namespace CurveFitting
void exportParametersWorkspace(std::map<std::string, std::pair<double, char> > parammap);

/// Create background function
void generateBackgroundFunction(std::string backgroundtype, std::vector<double> bkgdparamws);
CurveFitting::BackgroundFunction_sptr generateBackgroundFunction(std::string backgroundtype, std::vector<double> bkgdparamws);

/// Parse content in a table workspace to vector for background parameters
void parseBackgroundTableWorkspace(DataObjects::TableWorkspace_sptr bkgdparamws, std::vector<double>& bkgdorderparams);

/// Crop the workspace for better usage
void cropWorkspace();

/// Calcualte background by fitting peak heights
void calBackground(size_t workspaceindex);

/// Split peaks to peak groups
std::vector<std::set<size_t> > splitPeaksToGroups();

/// Instance data
API::MatrixWorkspace_sptr dataWS;
DataObjects::Workspace2D_sptr outputWS;
Expand Down

0 comments on commit 05756a5

Please sign in to comment.