def add_points (   self,
  xvector,
  yval,
  x_transpose = 0 
)

Add multiple points to the fit simultaneously.

Parameters:
xvector A 1-d or 2-d array of abscissas
yval A 1-d array of ordinates
x_transpose If x_transpose is False or 0, xvector has one point per column. If True, xvector has one point per row.

Definition at line 358 of file fitting_toolkit.py.

00358                                                       :
00359         n=self.pointcount   
00360         
00361         if x_transpose:
00362             xv=Numeric.transpose(array(xvector))
00363         else:
00364             xv=array(xvector)
00365         
00366         n1=xv.shape[-1]
00367         if len(xv.shape) == 1:  
00368             self.check_arrays(1.0, n1) #elements of x are scalar
00369         else:
00370             self.check_arrays(xv[:,0], n1) #elements of x are vector
00371             
00372         if self.arg_count > 1:
00373             self.xarray[:,n:n+n1]=xv
00374         else:
00375             self.xarray[0,n:n+n1]=xv
00376         self.yarray[n:n+n1]=yval
00377         self.pointcount=self.pointcount+n1
00378     
    ##


Generated on Wed Nov 21 10:18:32 2007 for analysis by  doxygen 1.5.4