diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /lib/fchisq0.f90 | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'lib/fchisq0.f90')
| -rwxr-xr-x | lib/fchisq0.f90 | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/fchisq0.f90 b/lib/fchisq0.f90 index 742df078..2c62f275 100755 --- a/lib/fchisq0.f90 +++ b/lib/fchisq0.f90 @@ -1,23 +1,23 @@ -real function fchisq0(y,npts,a)
-
- real y(npts),a(4)
-
-! rewind 51
- chisq = 0.
- do i=1,npts
- x=i
- z=(x-a(3))/(0.5*a(4))
- yfit=a(1)
- if(abs(z).lt.3.0) then
- d=1.0 + z*z
- yfit=a(1) + a(2) * (1.0/d - 0.1)
- endif
- chisq=chisq + (y(i) - yfit)**2
-! write(51,3001) i,y(i),yfit,y(i)-yfit
-!3001 format(i5,3f10.4)
- enddo
- fchisq0=chisq
-
- return
-end function fchisq0
-
+real function fchisq0(y,npts,a) + + real y(npts),a(4) + +! rewind 51 + chisq = 0. + do i=1,npts + x=i + z=(x-a(3))/(0.5*a(4)) + yfit=a(1) + if(abs(z).lt.3.0) then + d=1.0 + z*z + yfit=a(1) + a(2) * (1.0/d - 0.1) + endif + chisq=chisq + (y(i) - yfit)**2 +! write(51,3001) i,y(i),yfit,y(i)-yfit +!3001 format(i5,3f10.4) + enddo + fchisq0=chisq + + return +end function fchisq0 + |
