answersLogoWhite

0

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

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

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