Persistent homology and duality : doctoral thesis