code: function (p, maxr) {
    // model position as y = 2^(k+1) + c_k2^k + 1
    // where k(maxr) = floor(roundDiff/2)
    // works upto and including LB final (gf players must be positioned manually)
    var metric = 2*p - maxr;
    var k = Math.floor(metric/2) - 1; // every other doubles
    if (k < 0) {
      throw new Error('lbPos model works for k>=0 only');
    }
    var ck = Math.pow(2, k) * (metric % 2);
    return Math.pow(2, k + 1) + 1 + ck;
  }
docs: ------------------------------------------------------------------ statistics helpers ------------------------------------------------------------------