Skip to content

ProximitySortPlayerDataTrimAlg

Samuel Gomes edited this page Jul 15, 2024 · 4 revisions

ProximitySortPlayerDataTrimAlg

This class is a child of PlayerDataTrimAlg, which trims a list of states based on the age and proximity of the elements. The older states are discarded, and if there are close points they are also discarded to avoid redundancy and increase exploration. It also supports that the residue between two phases is discarded first (this is informed by the type in each PlayerState). GIMME can benefit from the latter when bootstrapping the system because simulated data needs to be discarded as real data is added.

Constructor and Members

Constructor

ProximitySortPlayerDataTrimAlg(max_num_model_elements: int, epsilon: decimal = 0.01, acc_state_residue: bool =  False): void

Members

Name: expected type Default value Description
__epsilon: decimal 0.01 A limit to the distance considered to be close.
__acc_state_residue: boolean False Informs the algorithm if it should consider type (see above).

Functions

consider_state_residue(acc_state_residue: boolean): void

Description

Sets the __acc_state_residue flag.

__proximity_sort(elem: PlayerState): decimal

Description

Sorting function to order a list by proximity.

__creation_time_sort(elem: PlayerState): decimal

Description

Sorting function to order a list by age.

Overrides trimmedList (see PlayerDataTrimAlg).

Clone this wiki locally