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

Factorial moments from raw moments, via the signed Stirling table. More...

Include dependency graph for moment_factorial_from_raw.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::moment

Functions

template<class T>
std::vector< T > line::moment::moment_factorial_from_raw (const std::vector< T > &m)
 f = s * m, with s the signed Stirling numbers of the first kind.

Detailed Description

Factorial moments from raw moments, via the signed Stirling table.

Templated port of matlab/src/api/moment/moment_factorial_from_raw.m. Every operation is integer or rational, so the exact instantiation returns the transform with no rounding at all. That matters more here than almost anywhere else in the API: the alternating binomial sums of the moment conversions cancel catastrophically in double arithmetic once the order grows.

Definition in file moment_factorial_from_raw.h.