Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “We are going to perform our experiments using the following sliding window sizes: 16
, 256
, 1024
, 4096
, and 16384
.”
A block of code is set as follows:
def query(ISAX, q): global totalQueries totalQueries = totalQueries + 1 Accesses = 0 # Create TS Node
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
# Query iSAX for TS1 for idx in range(0, len(ts1)-windowSize+1): currentQuery = ts1[idx:idx+windowSize] found, ac = query(i1, currentQuery) if found == False: print("This cannot be happening!") return
Any command-line input or output is written as follows:
$ ./accessSplit.py -s 8 -c 32 -t 500 -w 16384 500k.gz Max Cardinality: 32 Segments: 8 Sliding Window: 16384 Threshold: 500 Default Promotion: False OVERFLOW: 01111_10000_10000_01111_10000_01111_10000_01111 Number of splits: 6996 Number of subsequence accesses: 19201125
Tips or important notes
Appear like this.