[][src]Module linfa_reduction::utils

Functions

generate_blob

Generate blob_size data points (a "blob") around blob_centroid.

generate_blobs

Given an input matrix blob_centroids, with shape (n_blobs, n_features), generate blob_size data points (a "blob") around each of the blob centroids.

generate_convoluted_rings
generate_convoluted_rings2d
generate_swissroll

Generates a three dimension swiss roll, centered at the origin with height height and outwards speed speed

to_gaussian_similarity

Computes a similarity matrix with gaussian kernel and scaling parameter eps