Skip to content

PlayerState

Samuel Gomes edited this page Dec 2, 2019 · 9 revisions

PlayerState

This class represents the learning state of a player. It couples data stored in PlayerCharacteristics to current adaptation variables such as the current incentivized profile.

Constructor

PlayerState(creationTime, profile, characteristics, dist): void

Attributes

Name: expected type Default value Description
creationTime: Time current time Timestep representing the time when the instance was created.
profile: InteractionsProfile 0.0 The current incentivized profile.
characteristics: PlayerCharacteristics 0.0 The current characteristics of the player.
dist: float 0.0 Used as an auxiliary variable to store the distance between other profiled PlayerState.

Methods

distanceBetween(profileToTest): float

Description

Calculates the euclidean distance between this and other profile.

Name: expected type Default value Description
profileToTest: InteractionsProfile - The other profile to compare

sqrDistanceBetween(profileToTest): float

Description

Calculates the squared euclidean distance between this and other profile.

Name: expected type Default value Description
profileToTest: InteractionsProfile - The other profile to compare

normalizedDistanceBetween(profileToTest): float

Description

Calculates the normalized euclidean distance between this and other profile.

Name: expected type Default value Description
profileToTest: InteractionsProfile - The other profile to compare

reset(): void

Description

Sets all characteristics to the default values.

Clone this wiki locally