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 Matrixcache_t_hlru(Matrix gamma, Matrix m)Computes the characteristic time of each list in the TTL approximation of h-LRU. final static MatrixhlruTime(DoubleArray x, Matrix gamma, Matrix m, Integer n, Integer h)final static Matrixcache_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.
-
-
-
-