Package jline.api.cache
Class Cache_gamma_lpKt
-
- All Implemented Interfaces:
public final class Cache_gamma_lpKt
-
-
Method Summary
Modifier and Type Method Description final static Ret.cacheGamma
cache_gamma_lp(Array<Matrix> lambda, Array<Array<Matrix>> R)
Computes access factors for the cache. final static ArrayList<Integer>
cache_par(Matrix R, Integer j)
Finds the parent of a given list index according to the access probabilities in an access probability matrix. -
-
Method Detail
-
cache_gamma_lp
final static Ret.cacheGamma cache_gamma_lp(Array<Matrix> lambda, Array<Array<Matrix>> R)
Computes access factors for the cache.
- Parameters:
lambda
-Matrix array representing request arrival rates from users to items of individual lists.
R
-2D Matrix array representing the reachability graph of a list for different streams and items.
- Returns:
cacheGammaLpReturn - An object containing access factors (gamma), the number of users (u), the number of items (n), and the number of lists (h).
-
cache_par
final static ArrayList<Integer> cache_par(Matrix R, Integer j)
Finds the parent of a given list index according to the access probabilities in an access probability matrix.
- Parameters:
R
-Matrix representing the access probabilities.
j
-Integer representing the list for which the parent will be found.
- Returns:
ArrayList<Integer> - A list containing the parent of the specified list index j.
-
-
-
-