skdim.datasets.hyperTwinPeaks

skdim.datasets.hyperTwinPeaks(n, d=2, height=1.0, random_state=None)[source]

Generates a sample from a plane with protruding peaks. Translated from Kerstin Johnsson’s R package intrinsicDimension

Parameters:
n : int

Number of data points.

d : int

Dimension of the dataset

height : float

Height of the peaks

random_state : int, np.random.RandomState instance

Random number generator

Returns:

data (np.array, (npoints x ndim)) – Generated data