显然,Math.Net库不包含用于获取样本自相关的函数。
如何使用相同的库来实现这一点?
发布于 2017-09-02 01:30:26
函数:
double ACF<T>(IEnumerable<T> series, int lag, Func<T, double> f)在MathNet.Numerics.Statistics.Mcmc中
计算自相关。
使用它的一个示例是在unit test中。
其中的一个片段是:
var series = new double[length];
for (int i = 0; i < length; i++)
{ series[i] = RandomSeries(); }
double result = MCMCDiagnostics.ACF(series, lag, x=>x*x);https://stackoverflow.com/questions/44952934
复制相似问题