LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Toggle main menu visibility
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
27
#include "
line/api/trace/mtrace_cross_moment.h
"
28
#include "
line/api/trace/trace_types.h
"
29
#include "
line/num/number.h
"
30
31
namespace
line
{
32
namespace
trace
{
33
34
/** @see mtrace_cross_moment */
35
template
<
class
T>
36
MtraceCrossMomentResult<T>
mtrace_moment_simple
(
const
std::vector<T>& Tv,
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
mtrace_cross_moment.h
Class-pair cross moments of a marked trace: the k-th moment of the interval that separates an event o...
line::trace
Definition
autocov.h:38
line::trace::mtrace_cross_moment
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...
Definition
mtrace_cross_moment.h:56
line::trace::mtrace_moment_simple
MtraceCrossMomentResult< T > mtrace_moment_simple(const std::vector< T > &Tv, const std::vector< int > &L, unsigned k)
Definition
mtrace_moment_simple.h:36
line
Definition
aoi_dist2ph.h:52
number.h
Number-type abstraction for the templated API port.
line::trace::MtraceCrossMomentResult
Return value of mtrace_cross_moment.
Definition
mtrace_cross_moment.h:41
trace_types.h
Shared declarations for the empirical trace statistics domain.
include
line
api
trace
mtrace_moment_simple.h
Generated by
1.18.0