LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
cache_prob_fpi.h File Reference

Cache hit and miss probabilities from the fixed-point multipliers. More...

#include <cstddef>
#include <vector>
#include "line/api/cache/cache_xi_fp.h"
#include "line/num/number.h"
#include "line/util/error.h"
#include "line/util/matrix.h"
Include dependency graph for cache_prob_fpi.h:

Go to the source code of this file.

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::cache

Functions

template<class T>
Matrix< T > line::cache::cache_prob_fpi (const Matrix< T > &gamma, const std::vector< int > &m)
 Cache hit and miss probabilities from the fixed-point multipliers.

Detailed Description

Cache hit and miss probabilities from the fixed-point multipliers.

Templated port of matlab/src/api/cache/cache_prob_fpi.m, cross-checked against jar/src/main/java/jline/api/cache/Cache_prob_fpi.java.

With S(i) = sum_l gamma(i,l) xi(l) from cache_xi_fp,

prob(i,1) = 1 / (1 + S(i)) (miss) prob(i,1+l) = gamma(i,l) xi(l) / (1 + S(i)) (item i in list l)

ARITHMETIC: transcendental, inherited from cache_xi_fp's tolerance-stopped iteration.

Each row sums to 1, and column 1+l sums over items to m(l), which is the equation cache_xi_fp solves. Until 2026-11-14 all four codebases wrote the AGGREGATE hit probability S/(1+S) into every list column (a scalar broadcast in MATLAB), so a row summed to 1 + (h-1) S/(1+S) whenever h > 1.

Definition in file cache_prob_fpi.h.