Persistence1D is a class for finding local extrema and their persistence in one-dimensional data.