weight_by_rank function

Rank-Based Portfolio Weighting