Event Calculation

<< Click to Display Table of Contents >>

Navigation:  Support > Reconfigurable Rulebook > String Formatting >

Event Calculation

Allowed Values

SUM: Means the score component of this Event is the sum of each of it's children.
See SUM Calculation below for calculating the special sum "S".

AVERAGE: Means the score component of this Event is the average of its children.
See AVERAGE Calculation below.

NONE (reserved for Singularities)

SUM Calculation Use with Calculation Variables

CalculationVariables are used, in conjunction with SUM, to specify how the special sum score component "S" is calculated.

When used they must by of type CalculationVariableScore. There must be one CalculationVariable per child event.

For example:

{

  "EventName" : "Aggregate"  

  "Children": [

    "Qualification",

    "Final"

  ],

  "Calculation": "SUM",

  "CalculationVariables": [

    {

      "VariableType": "SCORE",

      "Value": "I"

    },

    {

      "VariableType": "SCORE",

      "Value": "D"

    }

  ]

}

Means the special sum score component is the sum of the integer score of the first child (Qualification) and the decimal score of the second child (Final).

Aggregate.S = Qualification.I + Final.D

The other three components remain the sum of the children.

Aggregate.I = Qualification.I + Final.I

Aggregate.D = Qualification.D + Final.D

Aggregate.X = Qualification.X + Final.X

 

AVERAGE Calculation Use with Integer Calculation Variables

When one CalculationVariableInteger is used, the average is the average singular (shot) times the value of the Calculation Variable.

For example:

{

  "EventName" : "Prone AVG"  

  "Children": [

    "Prone"

  ],

  "Calculation": "AVERAGE",

  "CalculationVariables": [

    {

      "VariableType": "INTEGER",

      "Value": 10

    }

  ]

}

Means:

Prone AVG.I = (P1.I + P2.I + ... + P100.I ) / 100 * 10

Prone AVG.D = (P1.D + P2.D + ... + P100.D ) / 100 * 10

Prone AVG.X = (P1.X + P2.X + ... + P100.X ) / 100 * 10

 

AVERAGE Calculation Use with Integer Calculation Variables

When one CalculationVariableString is used, the value must be "EVENTS" (currently the only one supported). The average is the average of its direct children.

For example:

{

  "EventName" : "Aggregate AVG"  

  "Children": [

    "Prone",

    "Standing",

    "Kneeling"

  ],

  "Calculation": "AVERAGE",

  "CalculationVariables": [

    {

      "VariableType": "STRING",

      "Value": "EVENTS"

    }

  ]

}

Means:

Aggregate AVG.I = ( Prone.I + Standing.I + Kneeling.I ) / 3

Aggregate AVG.D = ( Prone.D + Standing.D + Kneeling.D ) / 3

Aggregate AVG.X = ( Prone.X + Standing.X + Kneeling.X ) / 3

 

Deprecated Values

AVG(10)

SUM(i, d)

SUM(i,d)