Skip to content

DiversityQualityEvalAlg

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

DiversityQualityEvalAlg

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

Constructor and Attributes

Constructor

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

Attributes

Name: expected type Default value Description
playerModelBridge: PlayerModelBridge - The connector for the player data storage.
diversityWeight: decimal - An attribute allowing the algorithm to value diversity or alignment.

Methods

- getPersonalitiesListFromPlayerIds(groupIds: int[]): PlayerPersonality[]

Description

(auxiliary) A method that returns the personalities of the players of a group.

- getTeamPersonalityDiveristy(personalities: PlayerPersonality[]): decimal

Description

(auxiliary) A method that calculates a diversity value based on a set of personalities.

This class overrides isTabular(), isGroupPredict(), predict(profile: InteractionsProfile, playerId: int), and groupPredict(groupIds: int[]) (see QualityEvalAlg). For this algorithm, isTabular() method returns False and isGroupPredict() method returns True.

Clone this wiki locally