Skip to content

Commit

Permalink
Use new citation style
Browse files Browse the repository at this point in the history
  • Loading branch information
kahaaga committed Aug 25, 2023
1 parent 2656dc2 commit 9fd002d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ maximum value (`minval` and `maxval`, respectively).
## Description
This encoding is inspired by Azami & Escudero[^Azami2016]'s algorithm for amplitude-aware
This encoding is inspired by [Azami2016](@citet)'s algorithm for amplitude-aware
permutation entropy. They use a linear combination of amplitude information and
first differences information of state vectors to correct probabilities. Here, however,
we explicitly encode the first differences part of the correction as an a integer symbol
Expand Down Expand Up @@ -43,11 +43,6 @@ encoding = RelativeFirstDifferenceEncoding(minval, maxval; n = 4)
pts = [rand(3) for i = 1:1000]
[encode(encoding, x) for x in pts]
```
[^Azami2016]:
Azami, H., & Escudero, J. (2016). Amplitude-aware permutation entropy:
Illustration in spike detection and signal segmentation. Computer methods and
programs in biomedicine, 128, 40-51.
"""
Base.@kwdef struct RelativeFirstDifferenceEncoding{R} <: Encoding
n::Int = 2
Expand Down
7 changes: 1 addition & 6 deletions src/encoding_implementations/relative_mean_encoding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ vector has with respect to a predefined minimum and maximum value (`minval` and
## Description
This encoding is inspired by Azami & Escudero[^Azami2016]'s algorithm for amplitude-aware
This encoding is inspired by [Azami2016](@citet)'s algorithm for amplitude-aware
permutation entropy. They use a linear combination of amplitude information and
first differences information of state vectors to correct probabilities. Here, however,
we explicitly encode the amplitude-part of the correction as an a integer symbol
Expand All @@ -29,11 +29,6 @@ element ``x_i`` can take is `minval`/`maxval`, respectively. Finally, the interv
When used with [`decode`](@ref), the left-edge of the bin that the normalized ``Λ``
fell into is returned.
[^Azami2016]:
Azami, H., & Escudero, J. (2016). Amplitude-aware permutation entropy:
Illustration in spike detection and signal segmentation. Computer methods and
programs in biomedicine, 128, 40-51.
"""
struct RelativeMeanEncoding{R} <: Encoding
n::Int
Expand Down

0 comments on commit 9fd002d

Please sign in to comment.