Sparse approximation on a network of locally competitive integrate and fire neurons