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

Class probabilities of a marked trace, p_c = count_c / N. More...

#include <cstddef>
#include <vector>
#include "line/api/trace/trace_types.h"
#include "line/num/number.h"
#include "line/util/error.h"
Include dependency graph for mtrace_pc.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::trace

Functions

template<class T>
std::vector< T > line::trace::mtrace_pc (const std::vector< int > &A)
 Class probabilities of a marked trace, p_c = count_c / N.

Detailed Description

Class probabilities of a marked trace, p_c = count_c / N.

Templated port of matlab/lib/m3a/m3a/mtrace/mtrace_pc.m, cross-checked against jar/src/main/java/jline/api/trace/Mtrace_pc.java (identical).

The inter-arrival times are not used; both references take them only for signature orthogonality with the rest of the mtrace family, so they are not a parameter here.

ARITHMETIC: counts over the sample size, exact in Rational. The entries sum to exactly 1 in the exact backends.

Definition in file mtrace_pc.h.