Packagecom.suckatmath.machinelearning.markov
Classpublic class TokenEntry
InheritanceTokenEntry Inheritance Object

represents a token in a markov chain



Public Properties
 PropertyDefined By
  data : *
content of this token
TokenEntry
  weight : int
[read-only] get number of times the token has been seen in this context
TokenEntry
Public Methods
 MethodDefined By
  
construct a new TokenEntry representing some arbitrary data
TokenEntry
  
increment():void
increase weight
TokenEntry
  
toString():String
return a string representation of this token
TokenEntry
Property Detail
dataproperty
public var data:*

content of this token

weightproperty 
weight:int  [read-only]

get number of times the token has been seen in this context


Implementation
    public function get weight():int
Constructor Detail
TokenEntry()Constructor
public function TokenEntry(d:*)

construct a new TokenEntry representing some arbitrary data

Parameters
d:*
Method Detail
increment()method
public function increment():void

increase weight

toString()method 
public function toString():String

return a string representation of this token

Returns
String