Class Index | File Index

Classes


Built-In Namespace _global_

Field Summary
Field Attributes Field Name and Description
 
global variables
 
nominal form range
 
sentence length range
 
sentence structure complexity range
 
vocabulary complexity range
 
word length range
Method Summary
Method Attributes Method Name and Description
 
adjust the table row heights
 
calculate length of a vector
 
interpolate between to colors
 
creates the tables for display
 
diff(vec1, vec2)
calculate difference vector
 
dotProduct(v1, v2)
calculate dotproduct
 
when sphere gets dragged, weights are changed
 
fills the tables
 
Creates SentenceDescription objects with the computed data from the document
 
isInFront(point, vec0, vec1)
tell if a point is "in front" of a line
 
midPoint(vec1, vec2)
caluculate middle point
 
normalize(vec)
normalize a vector
 
projectOntoLine(pointOne, pointTwo)
project a given position onto a line spanned by two points
 
sort methods
 
sum(arr)
calculate the sum of an array
 
create HEX color string
 
toInt(n)
convert to Integer
 
convert to rgb color string
 
updateTables(coords)
update the visualization structure
 
writeMessage(messageLayer, message, x, y)
write message to the top left of the stage
Field Detail
g_stage
global variables
Defined in: weightingPentagon.js.

MIN_NOMFORM
nominal form range
Defined in: SentenceDescription.js.

MIN_SENTLEN
sentence length range
Defined in: SentenceDescription.js.

MIN_SENTSTRUCTCOMPL
sentence structure complexity range
Defined in: SentenceDescription.js.

MIN_VOCCOMPL
vocabulary complexity range
Defined in: SentenceDescription.js.

MIN_WORDLEN
word length range
Defined in: SentenceDescription.js.
Method Detail
adjustHeights()
adjust the table row heights
Defined in: weightingPentagon.js.

calcLength(vec)
calculate length of a vector
Defined in: weightingPentagon.js.
Parameters:
vec

calculateColor(t)
interpolate between to colors
Defined in: weightingPentagon.js.
Parameters:
t

createTables()
creates the tables for display
Defined in: weightingPentagon.js.

diff(vec1, vec2)
calculate difference vector
Defined in: weightingPentagon.js.
Parameters:
vec1
vec2

dotProduct(v1, v2)
calculate dotproduct
Defined in: weightingPentagon.js.
Parameters:
v1
v2

dragCallback(evt)
when sphere gets dragged, weights are changed
Defined in: weightingPentagon.js.
Parameters:
evt

fillTable()
fills the tables
Defined in: weightingPentagon.js.

{Array} getDescriptions()
Creates SentenceDescription objects with the computed data from the document
Defined in: getSentenceDescriptions.js.
Returns:
{Array} Array of SentenceDescription objects

isInFront(point, vec0, vec1)
tell if a point is "in front" of a line
Defined in: weightingPentagon.js.
Parameters:
point
vec0
vec1

midPoint(vec1, vec2)
caluculate middle point
Defined in: weightingPentagon.js.
Parameters:
vec1
vec2

normalize(vec)
normalize a vector
Defined in: weightingPentagon.js.
Parameters:
vec

projectOntoLine(pointOne, pointTwo)
project a given position onto a line spanned by two points
Defined in: weightingPentagon.js.
Parameters:
pointOne
pointTwo

sortOne()
sort methods
Defined in: weightingPentagon.js.

sum(arr)
calculate the sum of an array
Defined in: weightingPentagon.js.
Parameters:
arr

toHEXColorString(R, G, B)
create HEX color string
Defined in: weightingPentagon.js.
Parameters:
R
G
B

toInt(n)
convert to Integer
Defined in: weightingPentagon.js.
Parameters:
n

toRGBColorString(rgb)
convert to rgb color string
Defined in: weightingPentagon.js.
Parameters:
rgb

updateTables(coords)
update the visualization structure
Defined in: weightingPentagon.js.
Parameters:
coords

writeMessage(messageLayer, message, x, y)
write message to the top left of the stage
Defined in: weightingPentagon.js.
Parameters:
messageLayer
message
x
y

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jun 19 2012 23:24:18 GMT+0200 (MESZ)