Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

Created Issue: Percentile Failing [5727]

$
0
0
I am getting an Index was out of range error when I try and call Percentile.Compute.

Here is my code :

```
IEnumerable<double> values =new[]{1.1, 2.2, 3.3, 4.4};
Percentile p = new Percentile(values);
p.Method=PercentileMethod.Interpolation;
return (decimal) p.Compute(0.1);

```

Any clues as to what the error could be?

full error info :

```
Index was out of range. Must be non-negative and less than the size of the collection.
```

Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>