code: def fit_apply(fit_result,vec_array):
      '''fit_apply(fir_result,vec_array) -> vec_array
      
      Applies a fit result to an array of vectors
      '''
  
      return map( lambda x,t1=fit_result[0],mt2=negate(fit_result[1]),
          m=fit_result[2]: add(t1,transform(m,add(mt2,x))),vec_arrayf fit_apply(fit_result,vec_array):
      '''fit_apply(fir_result,vec_array) -> vec_array
      
      Applies a fit result to an array of vectors
      '''
  
      return map( lambda x,t1=fit_result[0],mt2=negate(fit_result[1]),
          m=fit_result[2]: add(t1,transform(m,add(mt2,x))),vec_array)
docs: fit_apply(fir_result,vec_array) -> vec_array
      
      Applies a fit result to an array of vectors