Skip to content

Commit c5acd2f

Browse files
committed
final touches
1 parent ed6f2ac commit c5acd2f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

docs/src/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ Thus, any of the implemented [probabilities estimators](@ref estimators) can be
3434

3535

3636
!!! tip "There aren't many entropies, really."
37-
A crucial thing to clarify, is that many quantities that are named as entropies (e.g., permutation entropy ([`entropy_permutation`](@ref)), the wavelet entropy [`entropy_wavelet`](@ref), etc.), are _not really new entropies_. They are in fact new probability estimators. They simply devise a new way to calculate probabilities from data, and then plug those probabilities into formal entropy formulas such as the Shannon entropy. While in Entropies.jl we provide convenience functions like [`entropy_wavelet`](@ref), they really aren't anything more than 3-lines-of-code wrappers that call [`entropy_shannon`](@ref) with the appropriate [`ProbabilityEstimator`](@ref).
37+
A crucial thing to clarify is that many quantities that are named as entropies (e.g., permutation entropy [`entropy_permutation`](@ref), wavelet entropy [`entropy_wavelet`](@ref), etc.), are _not really new entropies_. They are new probability estimators. They simply devise a new way to calculate probabilities from data, and then plug those probabilities into formal entropy formulas such as the Shannon entropy. The probability estimators are smartly created so that they elegantly highlight important aspects of the data relevant to complexity.
3838

39-
There are only a few exceptions to this rule, which are quantities that are able to compute Shannon entropies via alternate means, without explicitly computing some probability distributions, such as [TODO ADD EXAMPLE].
39+
While in Entropies.jl we provide convenience functions like [`entropy_wavelet`](@ref), they really aren't anything more than 2-lines-of-code wrappers that call [`entropy_shannon`](@ref) with the appropriate [`ProbabilityEstimator`](@ref).
40+
41+
There are only a few exceptions to this rule, which are quantities that are able to compute Shannon entropies via alternate means, without explicitly computing some probability distributions, such as [`entropy_kraskov`](@ref).
4042

4143

4244
### Complexity measures

src/entropies/convenience_definitions.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Compute the permutation entropy of order `m` with delay/lag `τ`.
1010
This function is just a convenience call to:
1111
```julia
1212
est = SymbolicPermutation(; m, τ)
13-
entropy_renyi(x, est; base, q = 1)
13+
entropy_shannon(x, est; base)
1414
```
1515
See [`SymbolicPermutation`](@ref) for more info.
1616
Similarly, one can use `SymbolicWeightedPermutation` or `SymbolicAmplitudeAwarePermutation`
1717
for the weighted/amplitude-aware versions.
1818
"""
1919
function entropy_permutation(x; τ = 1, m = 3, base = MathConstants.e)
2020
est = SymbolicPermutation(; m, τ)
21-
entropy_renyi(x, est; base, q = 1)
21+
entropy_shannon(x, est; base)
2222
end
2323

2424
"""
@@ -29,13 +29,13 @@ Here `x` must be a matrix or higher dimensional `Array` containing spatial data.
2929
This function is just a convenience call to:
3030
```julia
3131
est = SpatialSymbolicPermutation(stencil, x, periodic)
32-
entropy_renyi(x, est; kwargs..., q = 1)
32+
entropy_shannon(x, est; kwargs...)
3333
```
3434
See [`SpatialSymbolicPermutation`](@ref) for more info, or how to encode stencils.
3535
"""
3636
function entropy_spatial_permutation(x, stencil, periodic = true; kwargs...)
3737
est = SpatialSymbolicPermutation(stencil, x, periodic)
38-
entropy_renyi(x, est; kwargs..., q = 1)
38+
entropy_shannon(x, est; kwargs...)
3939
end
4040

4141
"""
@@ -44,7 +44,7 @@ end
4444
Compute the wavelet entropy. This function is just a convenience call to:
4545
```julia
4646
est = WaveletOverlap(wavelet)
47-
entropy_renyi(x, est; base, q = 1)
47+
entropy_shannon(x, est; base)
4848
```
4949
See [`WaveletOverlap`](@ref) for more info.
5050
"""

0 commit comments

Comments
 (0)