gof_pt_mod
PURPOSE 
gof=gof_pt_mod(tm,modfunc,oaz,oel,iaz,iel,xerrs,yerrs)
SYNOPSIS 
function gof=gof_pt_mod(tm,modfunc,oaz,oel,iaz,iel,xerrs,yerrs)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
This function is called by:
SOURCE CODE 
0001 function gof=gof_pt_mod(tm,modfunc,oaz,oel,iaz,iel,xerrs,yerrs)
0002
0003
0004
0005
0006
0007 [maz,mel]=feval(modfunc,tm,iaz,iel);
0008
0009
0010
0011 d2r=pi/180;
0012
0013
0014
0015
0016
0017 if(nargin<8)
0018 az_errs = ones(size(iel));
0019 el_errs = ones(size(iel));
0020 else
0021
0022
0023 end
0024 az_errs = xerrs;
0025 el_errs = yerrs;
0026
0027
0028 chi_az=(maz-oaz)./az_errs;
0029 chi_el=(mel-oel)./el_errs;
0030 chisq_az=sum(chi_az.^2);
0031 chisq_el=sum(chi_el.^2);
0032
0033 gof=chisq_az+chisq_el;
0034
Generated on Sun 14-Jun-2015 17:12:45 by m2html © 2005