Class Index | File Index

Classes


Built-In Namespace _global_

Field Summary
Field Attributes Field Name and Description
 
Log
The Word Tree Log
 
**************************************** JSON and Word Tree (Suffix Tree) Part * *****************************************
Method Summary
Method Attributes Method Name and Description
 
addTrnstn(left, right, s)
 
buildJson(term)
Build the JSON tree structure that is needed to load the Word Tree.
 
canonize(s, k, p)
 
chooseText(textName)
Choose one of the given speeches
 
Computes a size value proportional to the square root of the node frequency.
 
Find the right most pair
 
getNumberOfChildren(node, nodeId)
Detect the number of children of a clicked node.
 
getRestOfPhrase1(node, nodeId)
A helper function that finds a node in the treedata and then executes the getRestOfPhrase2 function.
 
Concatenates the rest of the phrase to a string that has a maximum length of words.
 
hasSuffixForAllWords(terms, tree)
 
init(json)
Initializes the JSON Tree structure and loads it into the Word Tree.
 
Initializes the Word Tree: Sets a duration animation, a transition, the level distance, the levels to show, navigation and panning, and defines individual styles of nodes and labels before they are plotted.
 
 
node(name, id)
Get a node object with an ID, name and frequency.
 
pair(a, b)
 
Search for a term and initialize the corresponding Word Tree
 
shortenNames(label, node)
Shortens the names of the phrase endings by replacing them with the first word (nodename).
 
 
Build the suffix tree
 
Strng(left, right)
 
 
test_and_split(s, k, p, t)
 
upDate(s, k, i)
Field Detail
Log
The Word Tree Log
Defined in: wordtree.js.

trees
**************************************** JSON and Word Tree (Suffix Tree) Part * *****************************************
Defined in: wordtree.js.
Method Detail
addTrnstn(left, right, s)

Defined in: wordtree.js.
Parameters:
left
right
s

buildJson(term)
Build the JSON tree structure that is needed to load the Word Tree.
Defined in: wordtree.js.
Parameters:
term

canonize(s, k, p)

Defined in: wordtree.js.
Parameters:
s
k
p

chooseText(textName)
Choose one of the given speeches
Defined in: wordtree.js.
Parameters:
textName

computeSizeVal(freq)
Computes a size value proportional to the square root of the node frequency.
Defined in: wordtree.js.
Parameters:
freq

findRightMost(pair)
Find the right most pair
Defined in: wordtree.js.
Parameters:
pair

getNumberOfChildren(node, nodeId)
Detect the number of children of a clicked node.
Defined in: wordtree.js.
Parameters:
node
nodeId

getRestOfPhrase1(node, nodeId)
A helper function that finds a node in the treedata and then executes the getRestOfPhrase2 function.
Defined in: wordtree.js.
Parameters:
node
nodeId

getRestOfPhrase2(node)
Concatenates the rest of the phrase to a string that has a maximum length of words.
Defined in: wordtree.js.
Parameters:
node

hasSuffixForAllWords(terms, tree)

Defined in: wordtree.js.
Parameters:
terms
tree

init(json)
Initializes the JSON Tree structure and loads it into the Word Tree. Computes the Word Tree, makes a translation and emulates a click on the root node. Registers Event Handlers for the two interaction methods: explore and reroot.
Defined in: wordtree.js.
Parameters:
json

initST()
Initializes the Word Tree: Sets a duration animation, a transition, the level distance, the levels to show, navigation and panning, and defines individual styles of nodes and labels before they are plotted.
Defined in: wordtree.js.

isEmptyStrng()

Defined in: wordtree.js.

node(name, id)
Get a node object with an ID, name and frequency.
Defined in: wordtree.js.
Parameters:
name
id

pair(a, b)

Defined in: wordtree.js.
Parameters:
a
b

search()
Search for a term and initialize the corresponding Word Tree
Defined in: wordtree.js.

shortenNames(label, node)
Shortens the names of the phrase endings by replacing them with the first word (nodename).
Defined in: wordtree.js.
Parameters:
label
node

State()

Defined in: wordtree.js.

stDriver()
Build the suffix tree
Defined in: wordtree.js.

Strng(left, right)

Defined in: wordtree.js.
Parameters:
left
right

suffixTreeAlgorithm()

Defined in: wordtree.js.

test_and_split(s, k, p, t)

Defined in: wordtree.js.
Parameters:
s
k
p
t

upDate(s, k, i)

Defined in: wordtree.js.
Parameters:
s
k
i

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jun 07 2011 01:26:57 GMT+0200 (MESZ)