Index: trunk/archive/pslib/include/psMinimize.h
===================================================================
--- trunk/archive/pslib/include/psMinimize.h	(revision 671)
+++ trunk/archive/pslib/include/psMinimize.h	(revision 753)
@@ -15,6 +15,6 @@
 psVector *
 psMinimize(psVector *restrict initialGuess, ///< Initial guess and answer
-	   float (*myFunction)(const psVector *restrict), ///< Function to minimize
-	   float (*myFuncDeriv)(const psVector *restrict), ///< Derivatives of function, or NULL
+	   float (*myFunction)(const psVector *restrict, const psVector *restrict), ///< Function to minimize
+	   float (*myFuncDeriv)(const psVector *restrict, const psVector *restrict), ///< Derivatives of function, or NULL
 	   const psVector *restrict paramMask) ///< 1 = fit for parameter, 0 = hold parameter constant
 ;
@@ -24,10 +24,10 @@
 psVector *
 psMinimizeChi2(psVector *restrict initialGuess,	///< Initial guess and answer
-	       float (*evalModel)(const psVector *restrict,
-				  const psVector *restrict), ///< Model to fit; (domain and params)
+	       float (*evalModel)(const psVector *restrict, const psVector *restrict), ///< Model to fit; (domain and params)
 	       const psVector *restrict domain, ///< The domain values for the corresponding measurements
 	       const psVector *restrict data, ///< Data to fit
 	       const psVector *restrict errors, ///< Errors in the data
-	       const psVector *restrict paramMask) ///< 1 = fit for parameter, 0 = hold parameter constant
+	       const psVector *restrict paramMask, ///< 1 = fit for parameter, 0 = hold parameter constant
+	       float ChiSq)		///< calculated chisq of fit
 ;
 
@@ -35,7 +35,7 @@
 psPolynomial1D *
 psVectorFitPolynomial(psPolynomial1D myPoly, ///< Polynomial to fit
-		     const psVector *restrict x, ///< Ordinates (or NULL to just use the indices)
-		     const psVector *restrict y, ///< Coordinates
-		     const psVector *restrict yErr) ///< Errors in coordinates, or NULL
+ 		      const psVector *restrict x, ///< Ordinates (or NULL to just use the indices)
+		      const psVector *restrict y, ///< Coordinates
+		      const psVector *restrict yErr) ///< Errors in coordinates, or NULL
 ;
 
