Skip to main content

A library for computing samplings in arbitrary dimensions

Project description

A Collection of Space-filling Sampling Designs for Arbitrary Dimensions. The API is structured such that the top level packages represent the shape of the domain you are interested in:

  • ball - The n-dimensional solid unit ball

  • directional - The space of unit length directions in n-dimensional space. You can also consider this a sampling of the boundary of the n-dimensional unit ball.

  • hypercube - The n-dimensional solid unit hypercube \(x \\in [0,1]^n\).

  • subspace - Sampling a n-1-dimensional subspace orthogonal to a unit vector or sampling the Grassmanian Atlas of projections from a dimension n to a lower dimension m.

  • shape - a collection of (n-1)-manifold and non-manifold shapes embedded in an n dimensional space. For now these must all be sampled using a uniform distribution.

Within each module is a list of ways to fill the space of the samples. Note, that not all of the methods listed below are applicable to the modules listed above. They include:

  • Uniform - a random, uniform distribution of points (available for ball, directional, hypercube, subspace, and shape)

  • Normal - a Gaussian distribution of points (available for hypercube)

  • Multimodal - a mixture of Gaussian distributions of points (available for hypercube)

  • CVT - an approximate centroidal Voronoi tessellation of the points constrained to the given space (available for hypercube and directional)

  • LHS - a Latin hypercube sampling design of points constrained to the space (available for hypercube)

Including:
  • Uniform sampling of a n-dimensional ball

  • Uniform sampling of the directions on an n-dimensional sphere

  • Sampling the Grassmannian Atlas

  • An approximate Centroidal Voronoi Tessellation using a Probabilistic Lloyd’s Algorithm

  • An approximate Constrained Centroidal Voronoi Tessellation on an n-sphere

The python CVT code is adapted from a C++ implementation provided by Carlos Correa. The Grassmannian sampler is adapted from code from Shusen Liu.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

samply-0.0.2.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file samply-0.0.2.tar.gz.

File metadata

  • Download URL: samply-0.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.5.2

File hashes

Hashes for samply-0.0.2.tar.gz
Algorithm Hash digest
SHA256 04eaa14cd6db17cb543c116e226ccefd177d7d6211f03dc861d8ba5ae4f67ee8
MD5 3c7493ebb00cccf5eedcc3f682714cde
BLAKE2b-256 d1a62e7a76b99c6ef333e88e18dd5d779f096a0ae49ce4a6b0d50b32b3aa22b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page