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

+ isTabular(): bool

Description

For this algorithm, this method returns False.

+ isGroupPredict(): bool

Description

For this algorithm, this method returns True.

- 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.

Clone this wiki locally