Package jline.api.cache
Class Cache_ttl_lrum_map
java.lang.Object
jline.api.cache.Cache_ttl_lrum_map
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublecache_ttl_lrum_map(MatrixCell[] D0Matrix, MatrixCell[] D1Matrix, Matrix m) Aggregate request-weighted hit rate under the LRU(m)-MAP TTL approximation.static Matrixcache_ttl_lrum_map_pij(MatrixCell[] D0Matrix, MatrixCell[] D1Matrix, Matrix m) Per-item request-weighted probabilities under the LRU(m)-MAP TTL approximation.
-
Method Details
-
cache_ttl_lrum_map_pij
Per-item request-weighted probabilities under the LRU(m)-MAP TTL approximation.- Parameters:
D0Matrix- per-item MAP hidden-transition cells; D0Matrix[k].get(l) is the D0 matrix of item k while in list l (l=0..h-1)D1Matrix- per-item MAP arrival cells, same layoutm- cache capacity vector (1 x h)- Returns:
- (n x h+1) matrix; column 0 is the probability that a request for item k misses, column l the probability that it hits in list l.
-
cache_ttl_lrum_map
Aggregate request-weighted hit rate under the LRU(m)-MAP TTL approximation.
-