1function [gamma, lambda_cache, Rcost] = da_cache_isolate(ch, lambda)
2% [GAMMA, LAMBDA_CACHE, RCOST] = DA_CACHE_ISOLATE(CH, LAMBDA)
4% Isolated-cache input construction
for DA methods: builds
the per-
class,
5% per-item, per-list arrival rates LAMBDA_CACHE and
the access cost
6% matrices RCOST from
the cache node parameters CH (sn.nodeparam of
the
7% cache node) and
the current
class arrival rates LAMBDA (1 x nclasses),
8% then computes
the access factors GAMMA via cache_gamma_lp.
10% Copyright (c) 2012-2026, Imperial College London
17lambda_cache = zeros(u, n, h);
22 if ~isnan(ch.pread{v})
23 lambda_cache(v, k, l) = lambda(v) * ch.pread{v}(k);
31 % Default linear cache routing: items flow from list l to list l+1
35 Rmat = diag(ones(1, h), 1);
41gamma = cache_gamma_lp(lambda_cache, Rcost);