Skip to main content

Simulation and analysis of multifractal fields

Project description

ScaleInvariance

⚠️ This package is under active development. Current functionality is limited to Hurst exponent estimation and fractional Brownian motion simulation.

Simulation and analysis tools for scale-invariant processes and multifractal fields.

Current Features

Simulation

  • 1D fractional Brownian motion: acausal_fBm_1D() - Spectral synthesis method
  • 2D fractional Brownian motion: acausal_fBm_2D() - Isotropic 2D fields with proper frequency normalization

Hurst Exponent Estimation

  • Haar fluctuation method: haar_fluctuation_hurst()
  • Structure function method: structure_function_hurst()
  • Spectral method: spectral_hurst()

All methods support multi-dimensional arrays and return uncertainty estimates.

Installation

pip install scaleinvariance

Basic Usage

from scaleinvariance import acausal_fBm_1D, acausal_fBm_2D, haar_fluctuation_hurst

# Generate 1D fractional Brownian motion
fBm_1d = acausal_fBm_1D(1024, H=0.7)

# Generate 2D fractional Brownian motion  
fBm_2d = acausal_fBm_2D((512, 1024), H=0.7)

# Estimate Hurst exponent
H_est, H_err = haar_fluctuation_hurst(fBm_1d)
print(f"Estimated H = {H_est:.3f} ± {H_err:.3f}")

Testing

# Test 1D fBm generation and Hurst estimation
python tests/test_acausal_fBm_hurst_estimation.py 0.7

# Test 2D fBm with isotropy validation
python tests/test_2d_fbm.py 0.7

Planned Features

  • Fractionally integrated flux (FIF) simulation
  • Advanced multifractal analysis tools
  • Additional Hurst estimation methods
  • Comprehensive documentation

Requirements

  • Python ≥ 3.8
  • NumPy, SciPy, PyTorch, Matplotlib

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

scaleinvariance-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scaleinvariance-0.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file scaleinvariance-0.1.0.tar.gz.

File metadata

  • Download URL: scaleinvariance-0.1.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scaleinvariance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8c94089d72aba8cdc8847e85356b19d06b1485e5c03bd9d7e8f508dd1c19db48
MD5 49825d849480c64a01d16682534881d8
BLAKE2b-256 151af97f0e9bd84ec1765763ee79bb2cb030ffa743726556950ee3c0e37e132e

See more details on using hashes here.

File details

Details for the file scaleinvariance-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scaleinvariance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4dfda543496f43608b61f0038536c4105f8a4b063f838649586a8e27ecbfac5
MD5 58ab1b7a81924736666c684d8080500e
BLAKE2b-256 7bc8c6ab6d677dd3aedd67501e7ba72a589aba803364d98ea3a3974fb9071bc5

See more details on using hashes here.

Supported by

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