LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
mtrace_moment_simple.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012-2026, QORE Lab, Imperial College London
3 * All rights reserved.
4 */
5#ifndef LINE_API_TRACE_MTRACE_MOMENT_SIMPLE_H
6#define LINE_API_TRACE_MTRACE_MOMENT_SIMPLE_H
7
8/**
9 * @file
10 * @ingroup api_trace
11 * Class-pair cross moments of a marked trace.
12 *
13 * Templated port of matlab/lib/m3a/m3a/mtrace/mtrace_moment_simple.m,
14 * cross-checked against
15 * jar/src/main/java/jline/api/trace/Mtrace_moment_simple.java.
16 *
17 * In BOTH codebases this function is a byte-for-byte duplicate of
18 * mtrace_cross_moment (same body, same doc comment, only the name differs),
19 * so it is kept as an alias rather than a second implementation: any future
20 * change to one of them would otherwise silently diverge here.
21 *
22 * ARITHMETIC: as mtrace_cross_moment, exact in Rational.
23 */
24
25#include <vector>
26
29#include "line/num/number.h"
30
31namespace line {
32namespace trace {
33
34/** @see mtrace_cross_moment */
35template <class T>
37 const std::vector<int>& L, unsigned k) {
38 return mtrace_cross_moment(Tv, L, k);
39}
40
41} // namespace trace
42} // namespace line
43
44#endif // LINE_API_TRACE_MTRACE_MOMENT_SIMPLE_H
Class-pair cross moments of a marked trace: the k-th moment of the interval that separates an event o...
MtraceCrossMomentResult< T > mtrace_cross_moment(const std::vector< T > &Tv, const std::vector< int > &L, unsigned k)
Class-pair cross moments of a marked trace: the k-th moment of the interval that separates an event o...
MtraceCrossMomentResult< T > mtrace_moment_simple(const std::vector< T > &Tv, const std::vector< int > &L, unsigned k)
Number-type abstraction for the templated API port.
Return value of mtrace_cross_moment.
Shared declarations for the empirical trace statistics domain.