Formula
score = (x) -> if x == "Yes" 10 else if x == "Partially" 5 else 0 redistributed_weights = (weights, values) -> num_of_weighted_values = weights.length for value, index in values if value == "Not Applicable" num_of_weighted_values -= 1 redistributed_weight_value = weights[index] for weight, i in weights if weight == 0 continue weights[i] = weight + redistributed_weight_value/num_of_weighted_values weights[index] = 0 weights weights = [0.25, 0.25, 0.25, 0.25] key_areas_for_biodiversity = [location_disclosure, key_areas_for_biodiversity_disclosure, key_areas_for_upstream_relationships, key_areas_for_management_plan] redistributed_weights(weights, key_areas_for_biodiversity) weights.reduce((weighted_sum, weight, index) -> weighted_sum + weight*score(key_areas_for_biodiversity[index]) , 0)
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
key_areas_for_biodiversity_disclosure
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
key_areas_for_upstream_relationships
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
key_areas_for_management_plan
2022