Skip to content

DiversityQualityEvalAlg

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

DiversityQualityEvalAlg

This class is a child of QualityEvalAlg. It contains the procedure for estimating the quality of a group based on the diversity of its members' estimated preferences.

Constructor and Members

Constructor

DiversityQualityEvalAlg(playerModelBridge: PlayerModelBridge, diversityWeight: decimal): void

Members

Name: expected type Default value Description
__diversity_weight: decimal{0..1} - An attribute allowing the algorithm to value diversity or alignment.

Functions

get_personalities_list_from_player_ids(group_player_ids: int[]): PlayerPersonality[]

Description

Returns the personalities of the players of a group.

get_team_personality_diveristy(personalities: PlayerPersonality[]): decimal

Description

Calculates a diversity value based on a set of personalities.

This class overrides evaluate (see QualityEvalAlg).

Clone this wiki locally