Quantcast
Viewing all articles
Browse latest Browse all 971

Commented Issue: Percentile Failing [5727]

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.
```
Comments: Can you wait a couple days for v2.5? The backend for the Percentile class has been replaced completely, plus it's now much easier to use, e.g. `(new[] {1.1, 2.2}).Quantile(0.1)`. Thanks, Christoph

Viewing all articles
Browse latest Browse all 971

Trending Articles



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