Definition:
- Use the idea of Euclidean Projection on a line
- The basic idea is to first orthogonalize each vector w.r.t. previous ones; then normalize result to have norm one.
- Given a set of vectors a1,...,an that are Linear Independence
- Let q~1=a1
- q1= normalized q~1
- remove q1 in vector a2, q~2=a2−(a2Tq1)q1
- q2= normalized q~2
- remove q1,q2 in vector a3, a~3=a3−(a3Tq1)q1−(a3Tq2)q2
- q3= normalized q~3
- …
- If at step i, we find q~i=0, meaning that vector is linearly dependence, then we directly jump at the next step