Multi-Armed Bandit Library v0.1

GamblerBase Members

GamblerBase overview

Protected Static Fields

randomRandom generator utility.

Public Instance Properties

LeverCount (inherited from Gambler) Gets the number of levers (of arms) of the multi-armed bandit.
Score (inherited from Gambler)Sum of the observed values.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ObserveRecords of the reward brough by the specified lever.
Play (inherited from Gambler) 
ResetReset the counters of the GamblerBase.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

GamblerBase ConstructorInitializes a new instance of the GamblerBase class.

Protected Instance Fields

leverMeanSum The sum of the mean of the already observed levers.
leverSigmaSum The of the sigma of the levers already observed twice.
leverSquareMeanSum The sum of the square mean of the already observed levers.
observationCounts Contains the number of observations for each lever. The observation counts are indexed by the lever indices.
observedLeverCount Number of already observed levers.
rewardSquareSums Contains the sum of the squared of the collected rewards for each lever. The sums are indexed by the lever indices.
rewardSums Contains the sum of the collected rewards for each lever. The sums are indexed by the lever indices.
roundIndex Index of the round currently played when the method Play is called.
twiceObservedLeverCount Number of levers already observed twice.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
LeverMeanGets the reward mean associated to the specified lever.
LeverSigma Gets the reward standard deviation associated to the specified lever.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

GamblerBase Class | Bandit.Stochastic Namespace