Skip to main content

Class ProsocialTimestampedRecord

Represents a single timestamped record of prosocial interaction data between two actors, capturing the safety (si), effort (Ei), and yield (ysi) scores for one time step in the prosocial metric calculation.

[Serializable]
public class ProsocialTimestampedRecord : TimeStampedRecord

Inheritance​

Inherited Members​

TimeStampedRecord.unixTimestamp

Constructors​

ProsocialTimestampedRecord(string, string, int, float, float, float, float, float)​

Initializes a new instance of the ProsocialTimestampedRecord class with specified data.

public ProsocialTimestampedRecord(string ActorAName, string ActorBName, int index, float gi, float ei, float si, float effort, float ysi)

Parameters​

NameTypeDescription
ActorANamestringName of Actor A.
ActorBNamestringName of Actor B.
indexintTime step index for this record.
gifloatAngle gi used in safety score calculation.
eifloatAngle ei used in safety score calculation.
sifloatSafety score at this time step.
effortfloatEffort value at this time step.
ysifloatYield (prosocial) score at this time step.

Fields​

ActorA​

Name of Actor A involved in the interaction.

public string ActorA

Field Value​

string

ActorB​

Name of Actor B involved in the interaction.

public string ActorB

Field Value​

string

Ei​

The effort value at the given time step index.

public float Ei

Field Value​

float

dataPointIndex​

The time step index for this data record.

public int dataPointIndex

Field Value​

int

ei​

Angle ei used in safety score calculation.

public float ei

Field Value​

float

gi​

Angle gi used in safety score calculation.

public float gi

Field Value​

float

si​

The safety score at the given time step index.

public float si

Field Value​

float

ysi​

The yield (prosocial) score at the given time step index.

public float ysi

Field Value​

float

  • Constructors
    • ProsocialTimestampedRecord(string, string, int, float, float, float, float, float)
  • Fields
    • ActorA
    • ActorB
    • Ei
    • dataPointIndex
    • ei
    • gi
    • si
    • ysi