1%{ @file cache_prob_fpi.m
2 % @brief Computes cache hit probabilities
using fixed-point iteration
4 % @author LINE Development Team
8 % @brief Computes cache hit probabilities
using FPI method
11 % This function computes cache hit probability distribution
using the
12 % fixed-point iteration (FPI) method.
16 % prob = cache_prob_fpi(gamma, m)
21 % <tr><th>Name<th>Description
22 % <tr><td>gamma<td>Item popularity probabilities
23 % <tr><td>m<td>Cache capacity vector
28 % <tr><th>Name<th>Description
29 % <tr><td>prob<td>Cache hit probability distribution
32function prob=cache_prob_fpi(gamma,m)
35xi = cache_xi_fp(gamma,m);
38 prob(i,1) = 1/(1+gamma(i,:)*xi(:));
39 prob(i,2:(1+h)) = gamma(i,:)*xi(:) ./ (1+gamma(i,:)*xi(:));