I'm new to MathNet
and implementing a code in C#.Net
.
There is a vector:
var X = new DenseVector(new double[] { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150 });
I need to find Y = **diff(X)**
calculating differences between adjacent elements of X
like:
Y = [X(2)-X(1) X(3)-X(2) ... X(m)-X(m-1)]
Is there built-in function diff() available in MathNet
? I searched on MathNet.Numerics/Differentiate, but its not available.