skdim.datasets.swissRoll3Sph¶
-
skdim.datasets.swissRoll3Sph(n_swiss, n_sphere, a=1, b=2, nturn=1.5, h=4, random_state=None)[source]¶ Generates a sample from a uniform distribution on a Swiss roll-surface, possibly together with a sample from a uniform distribution on a 3-sphere inside the Swiss roll. Translated from Kerstin Johnsson’s R package intrinsicDimension
Parameters: - n_swiss : int
Number of data points on the Swiss roll.
- n_sphere : int
Number of data points on the 3-sphere.
- a : int or float, default=1
Minimal radius of Swiss roll and radius of 3-sphere.
- b : int or float, default=2
Maximal radius of Swiss roll.
- nturn : int or float, default=1.5
Number of turns of the surface.
- h : int or float, default=4
Height of Swiss roll.
Returns: data (np.array, (npoints x ndim)) – Generated data