apoc.scoring.pareto

Details

Syntax

apoc.scoring.pareto(minimumThreshold, eightyPercentValue, maximumValue, score)

Description

Applies a Pareto scoring function over the given INTEGER values.

Arguments

Name

Type

Description

minimumThreshold

INTEGER

The minimum threshold for the score.

eightyPercentValue

INTEGER

The eighty percent value.

maximumValue

INTEGER

The maximum value.

score

INTEGER

The score.

Returns

FLOAT

Usage Examples

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

0

0.0

1

0.0

2

3.31259695023578

8

8.0

10

8.662519390047157

100

9.999999981682132