Introduction - If you have any usage issues, please Google them yourself
Centroid localization algorithm source,Three cases to consider.Only the anchor nodes,unknown nodes to be positioned as anchor nodes,neighbor anchor node of the unknown node using only neighbor anchor node positioning, not unknown neighbor anchor node node neighbor has positioned the unknown node positioning.