answersLogoWhite

0


Best Answer

SUMX = 0

SUMY = 0

N =0

FOR each angle a (in radians) DO

SUMX = SUMX + COS(a)

SUMY = SUMY + SIN(a)

N = N + 1

ENDFOR

AVGX = SUMX/N

AVGY = SUMY/N

IF (AVGX,AVGY) is "too close" to (0,0) THEN

report directionless, NULL VECTOR

ELSE

AVERAGEANGLE = ARCTAN(AVGY,AVGX)

ENDIF

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Calculate circular average
Write your answer...
Submit
Still have questions?
magnify glass
imp