0
$\begingroup$

I am trying to solve clustering problem. After step 1 i.e putting each data-point to a cluster now I want to calculate the mean or average of all of the data-points in a specific cluster. let suppose I have some data-points like A(2,3), B(4,5), C(6,7), D(8,9) in a cluster. How can I calculate their average?

$\endgroup$
0
$\begingroup$

One of 2 ways, depending on what you need.

Average of points is a point

If so, then average each coordinate separately to get the center of mass $C$

Average of points is a number

You can then compute average distance from the center of mass $C$ above, or compute all pairwise distances in the cluster and average those.

$\endgroup$
  • $\begingroup$ I have calculated like this please do have a look and tell me is it okay? [{(2+4+6+8)/4},{(3+5+7+9)/4}=(5,6) $\endgroup$ – Roshni Amber Jan 5 '18 at 20:34
  • $\begingroup$ @ZeeshanNisar this is the first way in my answer $\endgroup$ – gt6989b Jan 6 '18 at 23:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.