Wrote the calculate() method for calculating the chi-squared value for the current parameters.
Authored by: bugman 2009-06-29
Parent: [r9161]
Child: [r9163]