apoc.scoring.pareto

Function

apoc.scoring.pareto(minimumThreshold INTEGER, eightyPercentValue INTEGER, maximumValue INTEGER, score INTEGER) - applies a Pareto scoring function over the given INTEGER values.

Signature

apoc.scoring.pareto(minimumThreshold :: INTEGER, eightyPercentValue :: INTEGER, maximumValue :: INTEGER, score :: INTEGER) :: FLOAT

Input parameters

Name Type Default

minimumThreshold

INTEGER

null

eightyPercentValue

INTEGER

null

maximumValue

INTEGER

null

score

INTEGER

null

Usage Examples

UNWIND [0,1,2,8,10,100] as value
RETURN value, apoc.scoring.pareto(2,8,10,value) as output;
Table 1. Results
value output

0

0.0

1

0.0

2

3.31259695023578

8

8.0

10

8.662519390047157

100

9.999999981682132