Packagesystem.data.trees
Classpublic class TrieAverage
InheritanceTrieAverage Inheritance Object

This class is used in the Trie class to calculate the current average of the trie.



Public Properties
 PropertyDefined By
  average : int
The average value.
TrieAverage
  number : int
The number value.
TrieAverage
Public Methods
 MethodDefined By
  
Creates a new TrieAverage instance.
TrieAverage
  
add(i:int):void
Add an int value to calculate the new average of the trie.
TrieAverage
Property Detail
averageproperty
public var average:int

The average value.

numberproperty 
public var number:int

The number value.

Constructor Detail
TrieAverage()Constructor
public function TrieAverage()

Creates a new TrieAverage instance.

Method Detail
add()method
public function add(i:int):void

Add an int value to calculate the new average of the trie.

Parameters

i:int