Click or drag to resize
SeriesExtensionsDiffK Method (SeriesK, Int32, Int32)
Returns a series containing difference between a value in the original series and a value at the specified offset. For example, calling `Series.diff 1 s` returns a series where previous value is subtracted from the current one. ## Parameters - `offset` - When positive, subtracts the past values from the current values; when negative, subtracts the future values from the current values. - `series` - The input series.

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K, int> Diff<K>(
	this Series<K, int> series,
	int offset
)

Parameters

series
Type: DeedleSeriesK, Int32

[Missing <param name="series"/> documentation for "M:Deedle.SeriesExtensions.Diff``1(Deedle.Series{``0,System.Int32},System.Int32)"]

offset
Type: SystemInt32

[Missing <param name="offset"/> documentation for "M:Deedle.SeriesExtensions.Diff``1(Deedle.Series{``0,System.Int32},System.Int32)"]

Type Parameters

K

Return Value

Type: SeriesK, Int32

[Missing <returns> documentation for "M:Deedle.SeriesExtensions.Diff``1(Deedle.Series{``0,System.Int32},System.Int32)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SeriesK, Int32. 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