|
1 |
| -export ComplexityMeasure |
| 1 | +export ComplexityEstimator |
2 | 2 | export complexity
|
3 | 3 | export complexity_normalized
|
4 | 4 |
|
5 | 5 | """
|
6 |
| - ComplexityMeasure |
| 6 | + ComplexityEstimator |
7 | 7 |
|
8 |
| -Supertype for (entropy-like) complexity measures. |
| 8 | +Supertype for estimators for various complexity measures that are not entropies |
| 9 | +in the strict mathematical sense. |
| 10 | +See [`complexity`](@ref) for all available estimators. |
9 | 11 | """
|
10 |
| -abstract type ComplexityMeasure end |
| 12 | +abstract type ComplexityEstimator end |
11 | 13 |
|
12 | 14 | """
|
13 |
| - complexity(c::ComplexityMeasure, x) |
| 15 | + complexity(c::ComplexityEstimator, x) |
14 | 16 |
|
15 |
| -Estimate the complexity measure `c` for [input data](@ref input_data) `x`, where `c` can |
16 |
| -be any of the following measures: |
| 17 | +Estimate a complexity measure according to `c` |
| 18 | +for [input data](@ref input_data) `x`, where `c` can |
| 19 | +be any of the following estimators: |
17 | 20 |
|
18 | 21 | - [`ReverseDispersion`](@ref).
|
19 | 22 | - [`ApproximateEntropy`](@ref).
|
20 | 23 | - [`SampleEntropy`](@ref).
|
21 | 24 | - [`MissingDispersionPatterns`](@ref).
|
22 | 25 | """
|
23 |
| -function complexity(c::C, x) where C <: ComplexityMeasure |
| 26 | +function complexity(c::C, x) where C <: ComplexityEstimator |
24 | 27 | T = typeof(x)
|
25 | 28 | msg = "`complexity` not implemented for $C and input data of type $T."
|
26 | 29 | throw(ArgumentError(msg))
|
27 | 30 | end
|
28 | 31 |
|
29 | 32 | """
|
30 |
| - complexity_normalized(c::ComplexityMeasure, x) → m ∈ [a, b] |
| 33 | + complexity_normalized(c::ComplexityEstimator, x) → m ∈ [a, b] |
31 | 34 |
|
32 | 35 | The same as [`complexity`](@ref), but the result is normalized to the interval `[a, b]`,
|
33 | 36 | where `[a, b]` depends on `c`.
|
34 | 37 | """
|
35 |
| -function complexity_normalized(c::C, x) where {C <: ComplexityMeasure} |
| 38 | +function complexity_normalized(c::C, x) where {C <: ComplexityEstimator} |
36 | 39 | T = typeof(x)
|
37 | 40 | msg = "`complexity_normalized` not implemented for $C and input data of type $T."
|
38 | 41 | throw(ArgumentError(msg))
|
|
0 commit comments