\begin{definition}[Definition:Centroid/Weighted Set of Points]
Let $S = \set {A_1, A_2, \ldots, A_n}$ be a set of $n$ points in Euclidean space whose position vectors are given by $\mathbf a_1, \mathbf a_2, \dotsc, \mathbf a_n$ repectively.
Let $W: S \to \R$ be a weight function on $S$.
Let $G$ be the point whose position vector is given by:
:$\vec {OG} = \dfrac {w_1 \mathbf a_1 + w_2 \mathbf a_2 + \dotsb + w_n \mathbf a_n} {w_1 + w_2 + \dotsb + w_n}$
where $w_i = \map W {A_i}$ for each $i$.
Then $G$ is known as the '''centroid of $S$ with weights $w_i, w_2, \dotsc, w_n$'''.
\end{definition}