Description Usage Arguments Details Value References Examples
Functions to compute different measures of complexity for strings: Entropy, SecondOrder Entropy, and Change Complexity
1 2 3 4 5  entropy(string)
entropy2(string)
change_complexity(string)

string 

For users who need advanced functions, a comprehensive package computing various versions of entropy estimators is available entropy. For users who just need first and secondorder entropy and which to apply them to short string, the acss package provides two functions: entropy
(firstorder entropy) and entropy2
secondorder entropy.
Change complexity (change_complexity
) assesses cognitive complexity or the subjective perception of complexity of a binary string. It has been comprehensively defined by Aksentijevic and Gibson (2012). Although the algorithm will work with any number of symbols up to 10, the rationale of Change Complexity only applies to binary strings.
numeric
, the complexity of the string. For entropy
and entropy2
of the same length as string
. change_complexity
currently only works with inputs of length 1.
Aksentijevic & Gibson (2012). Complexity equals change. Cognitive Systems Research, 1517, 116.
1 2 3 4 5 6 7 8 9 10 11 12 13 14  strings1 < c("010011010001", "0010203928837", "0000000000")
strings2 < c("001011", "01213", "010101010101")
entropy(strings1)
entropy("XYXXYYXYXXXY") # "same" string as strings1[1]
entropy(c("HUHHEGGTE", "EGGHHU"))
entropy2(strings1)
entropy2("XYXXYYXYXXXY")
entropy2(strings2)
change_complexity(strings1)
change_complexity("XYXXYYXYXXXY")

Loading required package: acss.data
010011010001 0010203928837 0000000000
0.9798688 2.6235166 0.0000000
XYXXYYXYXXXY
0.9798688
HUHHEGGTE EGGHHU
2.197160 1.918296
010011010001 0010203928837 0000000000
1.867634 3.584963 0.000000
XYXXYYXYXXXY
1.867634
001011 01213 010101010101
1.9219281 2.0000000 0.9940302
010011010001 0010203928837 0000000000
6.447439 6.443398 0.000000
XYXXYYXYXXXY
6.447439
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.