Description Usage Arguments Details Value Note References See Also Examples
TransEntropy computes the transition entropy of each of the strings in a group.
1 | TransEntropy(strings.vec)
|
strings.vec |
String Vector. |
Entropy is calculated using the Shannon entropy formula: -sum(freqs * log2(freqs)). Here, freqs are transition frequencies, which are the values in the normalized transition matrix exported by function TransMx in this package. The formula is equivalent to the function entropy.empirical in the 'entropy' package when unit is set to log2.
Returns a number vector.
Strings with less than 2 characters are not included for computation of entropy.
I. Hooge; G. Camps. (2013) Scan path entropy and arrow plots: capturing scanning behavior of multiple observers. Frontiers in Psychology.
1 2 3 | # default values
stra.vec <- c("ABCDdefABCDa", "def123DC", "A", "123aABCD", "ACD13", "AC1ABC", "3123fe")
TransEntropy(stra.vec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.