local2global.exampleΒΆ

Generate synthetic test data

Functions

Voronoi_patches

Create patches for points.

add_noise

Add random normally-distributed noise to each point in each patch

generate_data

Generate test data with normally-distributed clusters centered on sphere.

noise_profile

Plot procrustes reconstruction errors as a function of the noise level

plot_reconstruction

Plot the reconstruction error for each point

rand_orth

Sample a random orthogonal matrix (for testing).

rand_rotate_patches

randomly rotate patches of alignment problem and return true rotations (used for testing)

rand_scale_patches

randomly scale patches of alignment problem and return the true scales (used for testing)

rand_shift_patches

randomly shift patches by adding a normally distributed vector (used for testing)

save_data