trink / symtseries

C Library providing means of symbolic analysis on time series data currently based on iSAX paper (http://www.cs.ucr.edu/~eamonn/iSAX/iSAX.html)
Mozilla Public License 2.0
3 stars 3 forks source link

Expect "ECA" on the following tests #37

Closed trink closed 8 years ago

trink commented 8 years ago
sax.word.new({1/0, 1/0, 1/0, 0, 0, 0, -1/0, -1/0, -1/0}, 9, 5) -- expect "ECA" gets "CCC"
sax.word.new({1/0, 1/0, 5, 0, 0, 0, -1/0, -1/0, -5}, 9, 5) -- correctly gets "ECA"

sax.word.new({0/0, 1/0, 1/0, 0, 0, 0, 0/0, -1/0, -1/0}, 9, 5) -- expect "ECA" gets "CCC"
sax.word.new({0/0, 5, 5, 0, 0, 0, 0/0, -5, -5}, 9, 5) -- correctly gets "ECA"
spolakh commented 8 years ago

Note: NaNs are preserved as special symbols, so for the last two it converts into "#EECCC#AA"