skdim.datasets.hyperBall

skdim.datasets.hyperBall(n, d, radius=1.0, center=[], random_state=None)[source]

Generates a sample from a uniform distribution on the hyperball

Parameters:
n : int

Number of data points.

d : int

Dimension of the hyperball

radius : float

Radius of the hyperball

center : list, tuple, np.array

Center of the hyperball

random_state : int, np.random.RandomState instance

Random number generator

Returns:

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