Skip to content

New methods of entropy analysis have been added: shannon, bubble, con…#55

Open
Wenderlog wants to merge 23 commits intoPySATL:mainfrom
Wenderlog:Kirill_Gribanov_Entropies
Open

New methods of entropy analysis have been added: shannon, bubble, con…#55
Wenderlog wants to merge 23 commits intoPySATL:mainfrom
Wenderlog:Kirill_Gribanov_Entropies

Conversation

@Wenderlog
Copy link

…dition, permutation, renyi, tsallis, KLD, dispersion, approximate, sample, slope. Tests have been developed and added to them.

@Wenderlog Wenderlog force-pushed the Kirill_Gribanov_Entropies branch from 4b5a5a6 to fa3fb7f Compare September 4, 2025 22:09
@Wenderlog Wenderlog force-pushed the Kirill_Gribanov_Entropies branch from fa3fb7f to e1528cd Compare September 4, 2025 22:23
…nyi, Sample, Slope, Tsallis; add __init__.py
This commit introduces:
- Vectorized implementation of phi calculation using numpy stride_tricks.
- Fix for infinite recursion in _calculate_phi.
- Fix for localize() method returning bool instead of an exact index.
- Clean up of unused distance metrics.
…ment methods

This commit introduces:
- Vectorized permutation entropy calculation using numpy stride_tricks.
- Added `get_entropy_history` method to retrieve past entropy values.
- Added `reset` method to clear internal buffers and state.
This commit introduces:
- Optimized array slicing and pre-checks for streaming performance.
- Added `get_entropy_history` and `reset` methods for state management.
- Fixed type hint mismatch and resolved magic number linting issues.
This commit introduces:
- Vectorized dispersion pattern extraction using numpy stride_tricks.
- Resolved ruff linting issues (removed unused variables, applied SIM108 to normalize entropy).
- Maintained all original docstrings and test compatibility.
This commit introduces:
- Vectorized KL Divergence calculations using numpy.
- Optimization of KDE processing.
- Resolved ruff linting issues (updated type hints, removed magic numbers).
- Kept all original docstrings unchanged.
This commit introduces:
- Vectorized Chebyshev distance calculations using numpy stride_tricks for fast pattern matching.
- Added fast anomaly pre-check in the observation pipeline.
This commit updates the test_shannon_entropy_algorithm.py to match the updated algorithm signature, adding 'anomaly_threshold' and 'std_threshold' to the constructor calls to ensure test compatibility.
…g issues

This commit introduces:
- Vectorized moving average and standard deviation anomaly pre-checks using numpy.
- Added reset() method for explicit state management.
…issues

This commit introduces:
- Vectorized slope pattern extraction using numpy stride_tricks for significant performance gains.
- Migrated internal state buffers from lists to fixed-size deques to prevent memory leaks and ensure O(1) operations.
This commit:
- Fixes type parameters for numpy arrays in entropy modules.
- Explicitly casts numpy scalars to native types.
- Applies ruff formatting to fix line length issues (E501) caused by long type hints.
Mypy does not allow using parameterized generics like npt.NDArray in runtime checks. Replaced them with np.ndarray to fix [misc] errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant