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

Raw moments from central moments and the mean. More...

#include <vector>
#include "line/num/number.h"
#include "line/util/error.h"
#include "line/util/matrix.h"
#include "line/util/population.h"
Include dependency graph for moment_raw_from_central.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_raw_from_central (const std::vector< T > &mc, const T &m1)
 m_i = sum_k C(i,k) mc_k m1^(i-k).

Detailed Description

Raw moments from central moments and the mean.

Templated port of matlab/src/api/moment/moment_raw_from_central.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_raw_from_central.h.