Matlab Sliding Bar Code for Delay Reconstruction and Fast Rips using Ripser
To run this code, you will need to check out and compile Ripser. Start by running the following commands:
git clone --recursive https://github.com/ctralie/Math412S2017.git
Enter the ripser directory and run the following commands:
make ripser
make ripser-coeff
Once these steps are complete, you can run the provided examples:
TDA.py: Code to compute persistent homology using Ripser, including basic command-line wrapping and plotting functionality.
SlidingWindow.py: Code for calculating sliding window embeddings for one-dimensional signals, using cos(t) + cos(pi t) as an example, and reporting persistence H1 and H2. This also shows how to compute PCA.
HorseWhinnies.py: Quantifying the periodicity and quasi-periodicity of audio segments from the file horsewhinnie.wav.
MusicSpeech.py: Running TDA on audio novelty features to discover rhythmic periodicity in music. The example compares travel.wav and speech.wav.
Matlab
0
2024-11-06