Click or drag to resize

EnumerableExtensionsGetDifferences(IEnumerableDouble) Method

Gets the differences x[i+1] - x[i], for i = 0 .. x.Count-2.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static IEnumerable<double> GetDifferences(
	this IEnumerable<double> x
)

Parameters

x  IEnumerableDouble
The x enumeration.

Return Value

IEnumerableDouble
The differences x[i+1] - x[i], for i = 0 .. x.Count-2.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also