Package jline.api.cache
Class Cache_prob_erec
java.lang.Object
jline.api.cache.Cache_prob_erec
-
Method Summary
Modifier and TypeMethodDescriptionstatic Matrixcache_prob_erec(Matrix gamma, Matrix m) Computes the cache state probabilities using an exact recursive method.static Matrixcache_prob_erec(Matrix gamma, Matrix m, Matrix sigma, Matrix k) Computes the cache state probabilities under per-list storage cost caps, pi_ij = m_j gamma_ij E_i(m-1_j, k-sigma_i 1_j) / E(m,k).
-
Method Details
-
cache_prob_erec
Computes the cache state probabilities using an exact recursive method. Calculates the probabilities of the cache being in different states based on the cache access factors and capacity.- Parameters:
gamma- Matrix representing the cache access factors.m- Matrix representing the cache capacity vector.- Returns:
- matrix containing the computed cache state probabilities for each item and level.
-
cache_prob_erec
Computes the cache state probabilities under per-list storage cost caps, pi_ij = m_j gamma_ij E_i(m-1_j, k-sigma_i 1_j) / E(m,k). See Casale-Gast, IEEE/ACM Trans. Networking 29(2), 2021, Sec. IX.- Parameters:
gamma- Matrix representing the cache access factors.m- Matrix representing the cache capacity vector.sigma- Item storage costs (sizes); null or empty for none.k- Per-list storage cost caps; null or empty for none.- Returns:
- matrix containing the computed cache state probabilities for each item and level.
-