added another assert to histogram to avoid trash result...

This commit is contained in:
Paolo Cignoni 2012-05-05 14:55:50 +00:00
parent 7537b20933
commit 486475d4a3
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ public:
ScalarType Percentile(ScalarType perc)
{
assert(!vec.empty());
assert(perc>=0 && perc<=1);
DirtyCheck();
int index = vec.size() *perc -1;