These directions have been adapted from https://gist.github.com/stupidpupil/1e88638e5240476ec1f77d4b27747c88?permalink_comment_id=2198481
For more info on some of these steps, visit https://mrchromebox.tech
- Connect the power
- Open the lid
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.spatial import KDTree | |
# Generate some number of sites in | |
# the square [0, 1] x [0, 1] | |
np.random.seed(0) | |
n_sites = 20 | |
sites = np.random.rand(n_sites, 2) | |
# Create random velocities |
import matplotlib.pyplot as plt | |
from matplotlib import cm | |
import numpy as np | |
from skimage import data | |
from skimage.color import rgb2gray | |
from colorspacious import cspace_converter | |
I = data.astronaut() | |
I = rgb2gray(I) | |
cmaps = ['gray', 'magma', 'jet', 'RdGy'] |
""" | |
Programmer: Chris Tralie | |
Purpose: To provide a basic ordered merge tree class for interval and circular domains, | |
along with methods to construct the merge tree from a time series, to plot it and | |
its associated persistence diagram, and to simplify the merge trees by persistence | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt |
These directions have been adapted from https://gist.github.com/stupidpupil/1e88638e5240476ec1f77d4b27747c88?permalink_comment_id=2198481
For more info on some of these steps, visit https://mrchromebox.tech