NDataSeries .FillFromEnumerable with Linq expression throws NotImplementException


Author
Message
Marcus Förster
Marcus Förster
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 1, Visits: 35
It looks like NDataSeries<T>.FillFromEnumerable calls Reset on its argument.
The IEnumerable object returned by System.Linq.Enumerable.Select (and possibly other Linq methods) does not implement Reset, and throws NotImplementedException.

To reproduce:
new NDataSeriesDouble().FillFromEnumerable(new double[] { 0, 1 }.Select(x => x));

Expected behavior: Fills the series with the values 0 and 1.
Observed behavior: Throws NotImplementedException.


Tags
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search