Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

index_w

Woeginger's w-index


Description

Given a sequence of n non-negative numbers x=(x_1,…,x_n), where x_i ≥ x_j ≥ 0 for i ≤ j, the w-index (Woeginger, 2008) for x is defined as

W(x)=max{i=1,…,n: x_j >= i-j+1 for all j=1,…,i}

Usage

index_w(x)

Arguments

x

a non-negative numeric vector

Details

If a non-increasingly sorted vector is given, the function has O(n) run-time.

See index_rp for a natural generalization.

Value

a single numeric value

References

Woeginger G. J., An axiomatic characterization of the Hirsch-index. Mathematical Social Sciences 56(2), 2008, pp. 224-232.

See Also


agop

Aggregation Operators and Preordered Sets

v0.2-3
LGPL (>= 3)
Authors
Marek Gagolewski [aut, cre] (<https://orcid.org/0000-0003-0637-6028>), Anna Cena [ctb] (<https://orcid.org/0000-0001-8697-5383>)
Initial release
2020-01-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.