Click or drag to resize
StatsinterpolateK, T Method
Interpolates an ordered series given a new sequence of keys. The function iterates through each new key, and invokes a function on the current key, the nearest smaller and larger valid observations from the series argument. The function must return a new valid float. ## Parameters - `keys` - Sequence of new keys that forms the index of interpolated results - `f` - Function to do the interpolating [category:Series interoploation]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K, T> interpolate<K, T>(
	IEnumerable<K> keys,
	FSharpFunc<K, FSharpFunc<FSharpOption<Tuple<K, T>>, FSharpFunc<FSharpOption<Tuple<K, T>>, T>>> f,
	Series<K, T> series
)

Parameters

keys
Type: System.Collections.GenericIEnumerableK

[Missing <param name="keys"/> documentation for "M:Deedle.Stats.interpolate``2(System.Collections.Generic.IEnumerable{``0},Microsoft.FSharp.Core.FSharpFunc{``0,Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.FSharpOption{System.Tuple{``0,``1}},Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.FSharpOption{System.Tuple{``0,``1}},``1}}},Deedle.Series{``0,``1})"]

f
Type: Microsoft.FSharp.CoreFSharpFuncK, FSharpFuncFSharpOptionTupleK, T, FSharpFuncFSharpOptionTupleK, T, T

[Missing <param name="f"/> documentation for "M:Deedle.Stats.interpolate``2(System.Collections.Generic.IEnumerable{``0},Microsoft.FSharp.Core.FSharpFunc{``0,Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.FSharpOption{System.Tuple{``0,``1}},Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.FSharpOption{System.Tuple{``0,``1}},``1}}},Deedle.Series{``0,``1})"]

series
Type: DeedleSeriesK, T

[Missing <param name="series"/> documentation for "M:Deedle.Stats.interpolate``2(System.Collections.Generic.IEnumerable{``0},Microsoft.FSharp.Core.FSharpFunc{``0,Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.FSharpOption{System.Tuple{``0,``1}},Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.FSharpOption{System.Tuple{``0,``1}},``1}}},Deedle.Series{``0,``1})"]

Type Parameters

K
T

Return Value

Type: SeriesK, T

[Missing <returns> documentation for "M:Deedle.Stats.interpolate``2(System.Collections.Generic.IEnumerable{``0},Microsoft.FSharp.Core.FSharpFunc{``0,Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.FSharpOption{System.Tuple{``0,``1}},Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.FSharpOption{System.Tuple{``0,``1}},``1}}},Deedle.Series{``0,``1})"]

See Also