![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Index of dispersion for counts, estimated by its asymptotic equality with the index of dispersion for intervals at a large aggregation level. More...
#include <vector>#include "line/api/trace/trace_idi.h"#include "line/api/trace/trace_types.h"#include "line/num/number.h"#include "line/util/error.h"Go to the source code of this file.
Namespaces | |
| namespace | line |
| namespace | line::trace |
Functions | |
| template<class T> | |
| T | line::trace::trace_idc (const std::vector< T > &S) |
| Index of dispersion for counts, estimated by its asymptotic equality with the index of dispersion for intervals at a large aggregation level. | |
Index of dispersion for counts, estimated by its asymptotic equality with the index of dispersion for intervals at a large aggregation level.
Templated port of matlab/lib/kpctoolbox/trace/trace_idc.m, cross-checked against jar/src/main/java/jline/api/trace/Trace_var.java#trace_idc.
DIVERGENCE, MATLAB vs JAR: the aggregation level is min(1000, ceil(n/30)) in MATLAB but min(1000, n/30) with integer division in the JAR. They differ on every trace whose length is not a multiple of 30, and for n < 30 the JAR asks for k = 0, which its trace_idi turns into a division by zero (NaN). MATLAB is the reference.
ARITHMETIC: as trace_idi, exact in Rational.
Definition in file trace_idc.h.