Profile Picture

NDataSeries .FillFromEnumerable with Linq expression throws NotImplementException

Posted By Marcus Förster 8 Years Ago

NDataSeries .FillFromEnumerable with Linq expression throws...

Author
Message
Marcus Förster
Problem Posted 8 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 2 Years Ago
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



Similar Topics


Reading This Topic