fiblat project¶
fiblat module¶
Create n-dimensional lattices.
- fiblat.cube_lattice(dim: int, num_points: int) ndarray[tuple[Any, ...], dtype[float64]]¶
Generate num_points points over the dim dimensional cube.
Generates num_points roughly evenly from the [0, 1]^dim.
- Parameters:
dim (dimension of cube to generate points in)
num_points (the number of points to generate)
- fiblat.sphere_lattice(dim: int, num_points: int) ndarray[tuple[Any, ...], dtype[float64]]¶
Generate num_points points over the dim - 1 dimensional hypersphere.
Generate a num_points length list of dim-dimensional tuples such the each element has an l2 norm of 1, and their nearest neighbor is roughly identical for each point.
- Parameters:
dim (the dimension of points to sample, i.e. the length of tuples in the) – returned list
num_points (the number of points to generate)