Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Move to LFPH narrow-net consensus configuration (#1)
Browse files Browse the repository at this point in the history
* Update en-configuration.jsonc

* Update scoring.md
  • Loading branch information
nzcovidtracer-dev authored Jun 24, 2021
1 parent fe98173 commit dbe22b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
15 changes: 7 additions & 8 deletions docs/exposure-notifications/en-configuration.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
//****************** EN V1 configuration parameters. ******************
// These parameters are used by older devices that do not support EN V2 risk scoring.
"minimumRiskScore": 1,
"attenuationLevelValues": [2, 3, 4, 5, 6, 7, 8, 8],
"attenuationWeight": 1,
Expand All @@ -9,8 +10,8 @@
"durationWeight": 1,
"transmissionRiskLevelValues": [1, 1, 1, 1, 1, 1, 1, 1],
"transmissionRiskWeight": 1,
"durationAtAttenuationThresholds": [56, 62],
"thresholdWeightings": [1, 0.5, 0],
"durationAtAttenuationThresholds": [56, 70],
"thresholdWeightings": [1.5, 0.7, 0],
"timeThreshold": 15,

//*************** EN V2 configuration parameters. *********************
Expand All @@ -25,15 +26,15 @@
"numFilesAndroid": 12,

// This maps to thresholdWeightings[0] * 100%
"immediateDurationWeight": 100,
"immediateDurationWeight": 150,

// This is one of the key differences between v1 and v2.
// In v1 durations at attenuation levels are calculated in 3 buckets as implemented by the plugin.
// In v2 durations at attenuation levels are calculated in 4 buckets as implemented by ENS itself.
"nearDurationWeight": 75,
"nearDurationWeight": 100,

// This maps to thresholdWeightings[1] * 100%
"mediumDurationWeight": 50,
"mediumDurationWeight": 40,

// This maps to thresholdWeightings[2] * 100%
"otherDurationWeight": 0,
Expand Down Expand Up @@ -78,9 +79,7 @@
// - attenuationDurationThresholds[1] = AVERAGE(thresholdWeightings[0], thresholdWeightings[1])
// - attenuationDurationThresholds[2] = thresholdWeightings[1]
// In v2 there is one more threshold than in in-plugin implementation for v1 (refer to the comment for nearDurationWeight).
// The new threshold here is chosen in agreement with the value choosen for nearDurationWeight - we are introducing one new threshold
// between the existing two, and therefore the corresponding new bucket is weighted as an average weight of its previous and next buckets.
"attenuationDurationThresholds": [56,59,62],
"attenuationDurationThresholds": [55,63,70],

// This is a property implemented by the plugin. This enables v2 calculation for devices that support v2 mode.
"v2Mode": true,
Expand Down
3 changes: 2 additions & 1 deletion docs/exposure-notifications/scoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ V1 (iOS 13.5-13.6, Android 6-7):
- If this score is above a given threshold, the user is alerted through a push
notification and in-app message alerting them to appropriate next steps.

Please see [configuration details as of version 4.0.0](./en-configuration.jsonc)
Configuration details are based on the [Linux Foundation for Public Health narrow-net consensus configuration](https://github.com/lfph/gaen-risk-scoring/blob/main/risk-scoring.md).
Please see [configuration details as of version 5.0.0](./en-configuration.jsonc)
for the current thresholds and attenuation settings.

[1]: https://github.com/covidgreen/react-native-exposure-notification-service
Expand Down

0 comments on commit dbe22b3

Please sign in to comment.