| SeriesExtensionsDiffK Method (SeriesK, Decimal, 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 public static Series<K, decimal> Diff<K>(
this Series<K, decimal> series,
int offset
)
Parameters
- series
- Type: DeedleSeriesK, Decimal
[Missing <param name="series"/> documentation for "M:Deedle.SeriesExtensions.Diff``1(Deedle.Series{``0,System.Decimal},System.Int32)"]
- offset
- Type: SystemInt32
[Missing <param name="offset"/> documentation for "M:Deedle.SeriesExtensions.Diff``1(Deedle.Series{``0,System.Decimal},System.Int32)"]
Type Parameters
- K
Return Value
Type:
SeriesK,
Decimal[Missing <returns> documentation for "M:Deedle.SeriesExtensions.Diff``1(Deedle.Series{``0,System.Decimal},System.Int32)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SeriesK,
Decimal. 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