The code for a number of example algorithms is provided in the UserAlgorithms directory of a Mantid installation, and can also be viewed by following the links that follow.
Category: Concepts