Skip to content

PlayerDataTrimAlg

Samuel Gomes edited this page Oct 31, 2024 · 6 revisions

PlayerDataTrimAlg

PlayerDataTrimAlg is an abstract base class for the algorithms responsible for managing the states (datapoints) of a PlayerStatesDataFrame. The class uses the function trimmedList for this purpose.

Constructor and Member

Constructor

PlayerDataTrimAlg(max_num_model_elements: int): void

Member

Name: expected type Default value Description
_max_num_model_elements: int - The number of states (datapoints) to keep after trimming the player history.

Function

trimmed_list(past_model_incs: PlayerState[]): PlayerState[][]

Description

(abstract) Trims the list of player states passed as input and returns a list containing the updated pastModelIncs in the first position and the removed element(s) in the second position.

Clone this wiki locally