tadasets.sphere

tadasets.sphere(n: int = 100, r: float = 1.0, noise: float | None = None, ambient: int | None = None, seed: int | None = None) ndarray[source]

Sample n data points on a sphere.

Parameters:
  • n (int, default=100) – Number of data points in shape.

  • r (float, default=1) – Radius of sphere.

  • noise (float, optional) – Standard deviation of normally distributed noise added to data.

  • ambient (int, optional) – Embed the sphere into a space with ambient dimension equal to ambient. The sphere is randomly rotated in this high dimensional space.

  • seed (int, optional) – Seed for random state.

Returns:

data (np.ndarray) – An (n,3) np.ndarray.