summaryrefslogtreecommitdiff
path: root/lib/fchisq.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /lib/fchisq.f90
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'lib/fchisq.f90')
-rw-r--r--lib/fchisq.f9018
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/fchisq.f90 b/lib/fchisq.f90
index f84898ba..03168f8c 100644
--- a/lib/fchisq.f90
+++ b/lib/fchisq.f90
@@ -5,21 +5,13 @@ real function fchisq(c3,npts,fsample,a)
complex c4(NMAX)
real a(3)
complex z
- data a1,a2,a3/99.,99.,99./
include 'jt9sync.f90'
- save
- if(a(1).ne.a1 .or. a(2).ne.a2 .or. a(3).ne.a3) then
- a1=a(1)
- a2=a(2)
- a3=a(3)
- call twkfreq(c3,c4,npts,fsample,a)
- endif
+ call twkfreq(c3,c4,npts,fsample,a)
! Get sync power.
nspsd=16
sum1=0.
- sum0=0.
k=-1
do i=1,85
z=0.
@@ -30,15 +22,9 @@ real function fchisq(c3,npts,fsample,a)
pp=real(z)**2 + aimag(z)**2
if(isync(i).eq.1) then
sum1=sum1+pp
- else
- sum0=sum0+pp
endif
enddo
- sync_4992=(sum1/16.0)/(sum0/69.0) - 1.0 !r4992
- sync_4993=sum1/10000.0 !r4993+
-! write(80,3001) 1.e-5*sum1,1.e-5*sum0,sync_4992,sync_4993,sync
-!3001 format(5f11.4)
- fchisq=-sync_4993
+ fchisq=-sum1/10000.0
return
end function fchisq