/* seqtsf.c CCMATH mathematics library source code. * * Copyright (C) 2000 Daniel A. Atkinson All rights reserved. * This code may be redistributed under the terms of the GNU library * public license (LGPL). ( See the lgpl.license file for details.) * ------------------------------------------------------------------------ */ #include "armaf.h" #include #include void setdrf(int k); extern struct mcof *pfc; extern int nfc,np,ndif; double seqtsf(struct fmod *x,int n,double *var,int kf) { double *pd,*pg,*pmax,*p,*q,*h,*f; int i,j; struct mcof *pp; double e,ssq,sig,drfmod(struct fmod,double *); pd=(double *)calloc(2*np,sizeof(double)); pg=pd+np; if(kf==0){ e=1./nfc; for(p=var,i=0; icf+=e*(*p++/=sig); for(p=pg,h=var,kf=0; p