A package for generating evenly distributed points on a sphere
Project description
Fibonacci Lattice
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fiblat-0.4.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file fiblat-0.4.0.tar.gz
.
File metadata
- Download URL: fiblat-0.4.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5b23bebcc1d2698a623c7e55307c14e8de31309836848f03423c6ea11fa20b1 |
|
MD5 | 75b5b4697f110a54fbf992e04f027b9d |
|
BLAKE2b-256 | 84823943e5d5dba0ba68406dbc067ddd6453a3ef77bd4518093fad2a2d63120f |
File details
Details for the file fiblat-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: fiblat-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2acdb027e5f614dd7a004cae70838bb504e45a7b24fdaed2a51d651aa585ded9 |
|
MD5 | cc47b5fc85a52faedddd0fe3af4f6eb1 |
|
BLAKE2b-256 | 9aa6c1cf8fefe7681282f2be3da545febb20f33bfd63dc468b9b3c0091248c42 |