GODPAPER | All Packages | All Classes | Index | Frames No Frames |
TokenEntry

Package | com.suckatmath.machinelearning.markov
Class | public class TokenEntry
Inheritance | TokenEntry Object

represents a token in a markov chain

Public Properties

| Property | Defined 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

| Method | Defined By
--- | --- | ---
|  | TokenEntry(d:*) 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

data | property

`public var data:*`

content of this token

weight | property |

`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` —

Thu Jan 16 2014, 01:11 PM +08:00