Error when performing linearInterpolation from C#
See original GitHub issueVersion 2.0.0 throws on linear interpolation when trying to be called from C#:
System.NotSupportedException : Dynamic invocation of op_Explicit is not supported
at <StartupCode$Deedle>.$SeriesStatsExtensions.InterpolateLinear@174-2.Invoke(V value) in c:\FSharp\zhuz\Deedle\src\Deedle\SeriesStatsExtensions.fs:line 174
at <StartupCode$Deedle>.$Series.f@345-17[K,V,R](Func`2 f, KeyValuePair`2 kvp, V v) in c:\FSharp\zhuz\Deedle\src\Deedle\Series.fs:line 401
at <StartupCode$Deedle>.$Series.Select@399-1.Invoke(KeyValuePair`2 kvp) in c:\FSharp\zhuz\Deedle\src\Deedle\Series.fs:line 400
at <StartupCode$Deedle>.$ArrayVector.data@374-6.Invoke(Int32 i, T v) in c:\FSharp\zhuz\Deedle\src\Deedle\Vectors\ArrayVector.fs:line 374
at Microsoft.FSharp.Collections.ArrayModule.MapIndexed[T,TResult](FSharpFunc`2 mapping, T[] array)
at Deedle.Vectors.ArrayVector.ArrayVector`1.Deedle-IVector`1-Select[TNewValue](FSharpFunc`2 f) in c:\FSharp\zhuz\Deedle\src\Deedle\Vectors\ArrayVector.fs:line 374
at Deedle.Series`2.SelectOptional[R](Func`2 f) in c:\FSharp\zhuz\Deedle\src\Deedle\Series.fs:line 415
at Deedle.SeriesStatsExtensions.InterpolateLinear[K,V](Series`2 series, IEnumerable`1 keys, Func`3 keyDiff)
...
This didn’t happen with the 2.0.0-beta1
Maybe it has to do with the inline feature of F# (https://stackoverflow.com/questions/40850712/operator-used-in-f-raises-specified-method-is-not-supported-exception-from). I saw that the code is indeed marked inline…
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
ERROR IN LINEAR INTERPOLATION
ERROR IN LINEAR INTERPOLATION. Let P1(x) be the linear polynomial interpolating f (x) at x0 and x1. Assume f (x) is twice continuously...
Read more >What is the best way to represent uncertainty from linear ...
Interpolation error. The trapezoidal rule gives an area (C0+C1)Δp/2. The upper limit of area given by the left Riemann sum is C0Δp, ...
Read more >Scipy Interpolate only allows linear interpolation, otherwise ...
It seems to work fine using linear interpolation, but raises the following error if I try and use quadratic or cubic interpolation: ValueError: ......
Read more >Linear Interpolation - an overview
A shortcoming of this method is that the resulting images have discontinuous first-order derivatives at the sampled points. Such discontinuity can cause ...
Read more >Linear Interpolation - cupcake physics
Linear interpolation allows us to figure out the values between entires in that table. It is easiest to think about linear interpolation in ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve just published 2.0.1. Please test it and let me know.
@FoggyFinder Sure! Thanks for your contributions!