Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 903 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 903 Bytes

Fibonacci Lattice

pypi build

A simple small python package for generating uniform points on the sphere. This module provides to functions fiblat.cube_lattice and fiblat.sphere_lattice. Both functions take a dimension and a number of points and return numpy arrays that are roughly evenly spaced in either the [0, 1] hypercube or the unit hypersphere.

Installation

pip install fiblat

Usage

from fiblat import sphere_lattice, cube_lattice

cube = cube_lattice(3, 100)
sphere = sphere_lattice(3, 100)

Development

  • setup: poetry install
  • tests: poetry run pytest