Package jline.api.cache
Class Cache_t_hlruKt
-
- All Implemented Interfaces:
public final class Cache_t_hlruKt
-
-
Method Summary
Modifier and Type Method Description final static Matrix
cache_t_hlru(Matrix gamma, Matrix m)
Computes the characteristic time of each list in the TTL approximation of h-LRU. final static Matrix
hlruTime(DoubleArray x, Matrix gamma, Matrix m, Integer n, Integer h)
final static Matrix
cache_t_hlru_aux(DoubleArray x, Matrix gamma, Matrix m, Integer n, Integer h)
Auxiliary function for cache_t_hlru inner optimization. -
-
Method Detail
-
cache_t_hlru
final static Matrix cache_t_hlru(Matrix gamma, Matrix m)
Computes the characteristic time of each list in the TTL approximation of h-LRU.
- Parameters:
gamma
-Matrix representing access factors for items across different levels.
m
-Matrix representing cache capacity vector.
- Returns:
Matrix - A matrix containing the computed TTL values.
-
cache_t_hlru_aux
final static Matrix cache_t_hlru_aux(DoubleArray x, Matrix gamma, Matrix m, Integer n, Integer h)
Auxiliary function for cache_t_hlru inner optimization.
- Parameters:
x
-Array of double values representing certain parameters for the computation.
gamma
-Matrix representing access factors for items across different levels.
m
-Matrix representing cache capacity vector.
n
-Integer representing the number of items.
h
-Integer representing the number of levels.
- Returns:
Matrix - A matrix containing the computed objective function.
-
-
-
-