summaryrefslogtreecommitdiff
path: root/map65/libm65/averms.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-09-16 12:37:12 +0200
committerChristoph Berg <myon@debian.org>2025-09-16 12:57:29 +0200
commit5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch)
tree4d09343cfe757239895a0dd9b399242d2a07d7c2 /map65/libm65/averms.f90
parent23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff)
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'map65/libm65/averms.f90')
-rwxr-xr-xmap65/libm65/averms.f9040
1 files changed, 20 insertions, 20 deletions
diff --git a/map65/libm65/averms.f90 b/map65/libm65/averms.f90
index 904004c8..d4f41846 100755
--- a/map65/libm65/averms.f90
+++ b/map65/libm65/averms.f90
@@ -1,20 +1,20 @@
-subroutine averms(x,n,nskip,ave,rms)
- real x(n)
- integer ipk(1)
-
- ns=0
- s=0.
- sq=0.
- ipk=maxloc(x)
- do i=1,n
- if(abs(i-ipk(1)).gt.nskip) then
- s=s + x(i)
- sq=sq + x(i)**2
- ns=ns+1
- endif
- enddo
- ave=s/ns
- rms=sqrt(sq/ns - ave*ave)
-
- return
-end subroutine averms
+subroutine averms(x,n,nskip,ave,rms)
+ real x(n)
+ integer ipk(1)
+
+ ns=0
+ s=0.
+ sq=0.
+ ipk=maxloc(x)
+ do i=1,n
+ if(abs(i-ipk(1)).gt.nskip) then
+ s=s + x(i)
+ sq=sq + x(i)**2
+ ns=ns+1
+ endif
+ enddo
+ ave=s/ns
+ rms=sqrt(sq/ns - ave*ave)
+
+ return
+end subroutine averms