package ANN
access public

 Methods

__construct()

__construct(integer $intMaxStringLength, boolean $boolOverride) 
uses \ANN\createMapping()

Parameters

$intMaxStringLength

integer

$boolOverride

boolean

(Default: FALSE) If $boolOverride is FALSE, an exception will be thrown if getInputValue() will be called with outranged values. If $boolOverride is TRUE, no exception will be thrown in this case, but lower values are replaced by $floatMin and upper values are replaced by $floatMax.

Exceptions

\ANN\Exception

__invoke()

__invoke(string $strValue) : array
uses \ANN\getInputValue()

Parameters

$strValue

string

Returns

array

__wakeup()

__wakeup() 

getInputValue()

getInputValue(string $strValue) : array
uses \ANN\calculateInputValues()
uses \ANN\removeSpecialCharacters()

Parameters

$strValue

string

Exceptions

\ANN\Exception

Returns

array

loadFromFile()

loadFromFile(string $strFilename) : \ANN\Network | \ANN\InputValue | \ANN\OutputValue | \ANN\Values | \ANN\StringValue | \ANN\Classification | \ANN\InterfaceLoadable
InheritedStatic
uses \ANN\Exception::__construct()
inherited_from \ANN\Filesystem::loadFromFile()

Parameters

$strFilename

string

(Default: null)

Exceptions

\ANN\Exception

Returns

saveToFile()

saveToFile(string $strFilename) 
Inherited
uses \ANN\Exception::__construct()
inherited_from \ANN\Filesystem::saveToFile()

Parameters

$strFilename

string

(Default: null)

Exceptions

\ANN\Exception

calculateInputValues()

calculateInputValues(string $strValue) : array
uses \ANN\getMapping()

Parameters

$strValue

string

Returns

array

createMapping()

createMapping() 
uses \ANN\ordUTF8()
uses \ANN\createSimilarityMapping()

Exceptions

\ANN\Exception

createSimilarityMapping()

createSimilarityMapping() 

getMapping()

getMapping(string $strCharacter) : float

Parameters

$strCharacter

string

Exceptions

\ANN\Exception

Returns

float

ordUTF8()

ordUTF8(string $strCharacter) : integer
author kerry at shetline dot com
author Thomas Wien

Parameters

$strCharacter

string

Exceptions

\ANN\Exception

Returns

integer

removeSpecialCharacters()

removeSpecialCharacters(string $strValue) : string

Parameters

$strValue

string

Returns

string

 Properties

 

$arrMapping : array
 

$boolOverride : boolean
 

$intMaxStringLength : integer