Skip to contents

Elongated gaussian data from "How to Use t-SNE Effectively".

Usage

long_gaussian_data(n, dim, color = NULL)

Arguments

n

Number of points.

dim

Dimension of the gaussian.

color

Color to assign to the data points.

Value

Data frame with coordinates in the X1, X2 ... Xdim columns, and color in the color column.

Details

Creates a randomly-sampled gaussian dataset of the specified dimension, with standard deviation following the harmonic series: the first column has standard deviation 1, the second 1/2, the third 1/3 and so on.

Examples

df <- long_gaussian_data(n = 50, dim = 2)