anchor.diff:  %% Calculations on Load Data Values
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
  +-compile({inline, [calc_current_estimate/1, calc_current_estimate/2]}).
  +
   %% @doc Calculate the current estimate from a given {Value, Weight} tuple.
   -spec calc_current_estimate(unknown | avg()) -> float() | unknown.
   calc_current_estimate(unknown) -> unknown;
  
positive.code:     [];
  data_get(Key, [LoadData | Other]) ->
      [data_get(Key, LoadData) | data_get(Key, Other)];
  data_get(Key, #load_data{name = Name, avg=Avg, avg2=Avg2,
          min=Min, max=Max, histo=Histo}) ->
      case Key of
          name -> Name;
          avg -> Avg;
          avg2 -> Avg2;
          min -> Min;
          max -> Max;
          histo -> Histo
      end;
  data_get(Key, #ring_data{size_inv = SizeInv, avg_kr = AvgKr}) ->
      case Key of
          size_inv -> SizeInv;
          avg_kr -> AvgKr
      end.
  
  -spec get_current_estimate(Key::avg | avg2,
                             unknown | load_data()) -> float() | unknown;
                            (Key::size_inv | avg_kr,
                             unknown | ring_data()) -> float() | unknown.
  get_current_estimate(_Key, unknown) -> unknown;
  get_current_estimate(Key, #load_data{avg=Avg, avg2=Avg2}) ->
      case Key of
          avg -> calc_current_estimate(Avg);
          avg2 -> calc_current_estimate(Avg2)
      end;
  get_current_estimate(Key, #ring_data{size_inv = SizeInv, avg_kr = AvgKr}) ->
      case Key of
          size_inv -> calc_current_estimate(SizeInv);
          avg_kr -> calc_current_estimate(AvgKr)
      end.
  
  %% get_size(Data) ->
  %%     Size_kr = calc_size_kr(Data),
  
negative.code: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %% Misc
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
  -compile({inline, inc/1}).
  
  %% @doc Increments given value with one.
  -spec inc(Value::integer()) -> integer().
  