Notes
Notes - notes.io |
c real A(100000), y(1000), hit(100000)
c integer pcx, pcy
c call rdata('..\GAMAFON.DAT',A,N)
c call hgram(A, N, 1000., y, hit, m)
c p = A(26)
c write (*,*) AMIN(A,N), AMAX(A,N)
c
c do i=1,m
c write (*,*) y(i), hit(i)
c end do
c
c write (*,*) pcx(100,700,2000.,8000.,5000.)
c
c end
integer function pcx(pxb, pxe, xmin, xmax, xcurr)
integer pxb, pxe
real xmin, xmax, xcurr
pcx=nint((pxe-pxb)/(xmax-xmin)*(xcurr-xmin)+pxb)
end
integer function pcy(pyb, pye, ymin, ymax,ycurr)
integer pyb, pye
real ymin, ymax, ycurr
pcx=nint((pyb-pye)/(ymax-ymin)*(ycurr-ymin)+pye)
end
function AVR(A,N)
REAL A(*)
sum=0
do i=1, N
sum= sum + A(i)
end do
AVR = sum/N
end function
function STD(A,N)
REAL A(*)
sum = 0
do i=1, N
sum= (A(i) - AVR(A,N))**2
end do
STD = sqrt(sum/(N-1))
end function
function AMIN(A,N)
REAL A(*)
AMIN=A(1)
do i=1, N
IF (AMIN>A(i))then
AMIN = A(i)
end if
end do
end function
function AMAX(A,N)
REAL A(*)
AMAX=A(1)
do i=1, N
IF (AMAX<A(i))then
AMAX = A(i)
end if
end do
end function
subroutine hgram(A, N, step, y, hit, m)
real A(*), y(*), hit(*)
x1=AMIN(A,N) - mod(AMIN(A,N), step)
x2=AMAX(A,N) - mod(AMAX(A,N), step)
m= nint((x2-x1)/step+1)
do i=1,m
y(i)= x1+step*(i-1)
hit(i)=0
end do
do i =1, h 0
do j = 1,m-1
if (A(i)>=y(j).AND. A(i)<y(j+1)) hit(j)=hit(j)+1
end do
end do
end
subroutine smooth(a,n,np,s)
real a(*), s(*)
integer np,n
do i=1, n
s(i) = a(i)
end do
do i = 1+np, n-np
sum=0
do k=i-np, i+np
sum= sum+a(k)
end do
s(i)= sum/1+2*np
end do
end
real function distance (a,s,n)
real a(*), s(*)
integer n
sum=0
do i=1, n
sum =sum+(a(i)-s(i))**2
end do
distance = sqrt(sum/n)
end function
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team