Metadata-Version: 2.1
Name: spatialstats
Version: 1.0.2
Summary: Statistical routines to analyze the spatial structure of 2D and 3D spatial fields and particle distributions.
Home-page: https://github.com/mjo22/spatialstats
Author: Michael O'Brien
Author-email: mobrien-temp@flatironinstitute.org
License: MIT
Description: # spatialstats #
        <tt>spatialstats</tt> is a collection of statistical tools and utility routines used to analyze the multi-scale structure of 2D and 3D spatial fields and particle distributions.
        
        Routines are designed to work with large datasets and some include optional CuPy acceleration. Each routine aims to be independent from the rest of the package, so feel free to just pull out the routine that you need!
        
        ## Submodules ##
        
        ### polyspectra ###
        Calculate the bispectrum and power spectrum of 2D and 3D grids.
        
        ### points ###
        Calculate statistics about the multi-scale structure of 2D and 3D point distributions, like the radial distribution function and structure factor.
        
        ## GPU usage ##
        
        The following example demonstrates how to access the <tt>spatialstats</tt> configuration object to toggle gpu usage
        
        ```python
        import numpy as np
        import spatialstats as ss
        
        ss.config.gpu = True
        
        shape = (100, 100)
        data = np.random.rand(*shape)
        result = ss.polyspectra.bispectrum(data)
        ```
        
        ## Installation ##
        
        ### Option 1 ###
        
        Clone from github and build by running
        
        ```shell
        python setup.py install
        ```
        
        ### Option 2 ###
        
        Install from PyPI
        
        ```shell
        pip install spatialstats
        ```
        
        #### GPU accleration ####
        
        Certain routines have GPU implementations. To enable the GPU acceleration, install [cupy](https://github.com/cupy/cupy)>=8.0.0.
        
Keywords: soft-condensed biophysics bispectrum cupy
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
