----- file created by makedoc on: Tue Feb 11 14:15:24 2003
----- Documentation for /scisoft/IDL/scisoft/xaid/src//polspl_evaluate.pro -----

 NAME:
	POLSPL_EVAL

 PURPOSE:

	evaluate the combined spline fitted from its coefficients.
	To be used after calls to POSLPL

 CATEGORY:
	XAID xafs data analysis package. 

 CALLING SEQUENCE:

	POLSPL_EVALUATE,set,xl,xh,c,nc,nr,fit

 INPUTS:
	set: the fltarr(2,npoints) set with the original data
	Y(i),i=1,npts           ordinates
	W(i),i=1,npts           weighting factor in least squares fit
	fit minimizes the sum of w(i)*(y(i)-poly(x(i)))**2
	if uniform weighting is desired, w(i) must be 1.
	XL,XH arrays contain NR adjacent ranges
	over which to fit individual polynomials.  Array NC specifies
	how many poly coeffs to use in each range and the array C contains
	the polynomial coefficients resulting from the fit


 OPTIONAL INPUTS:
	
 KEYWORD PARAMETERS:

 OUTPUTS:
	fit is a set with the same abscissas of the input one and 
	the coordinates are the result of the fit

 OPTIONAL OUTPUTS:

 COMMON BLOCKS:

 SIDE EFFECTS:
	None

 RESTRICTIONS:
	None

 PROCEDURE:
	Straightforward

 EXAMPLE:

	POLSPL,SET,XL,XH,C,NC,NR,C,FIT

 MODIFICATION HISTORY:
 	Written by:	Manuel Sanchez del Rio. ESRF
	February, 1993	

