From c379550e2e391bf3ac7ed2f63345db4305bab25a Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 10 Jun 2005 14:59:39 +0000 Subject: [PATCH] Added include assert.h and cast to ScalarType for a pow in SetRange() function. --- vcg/math/histogram.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/math/histogram.h b/vcg/math/histogram.h index 163cfd0b..b9819129 100644 --- a/vcg/math/histogram.h +++ b/vcg/math/histogram.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.7 2005/06/09 14:19:55 cignoni +Added typedef Histogramf and Histogramd + Revision 1.6 2005/06/07 09:37:33 ponchio Added fabs() to variance, which can sometime be negative in case of rounding errors (and sqrt chokes on it). @@ -50,7 +53,7 @@ Initial Release #define __VCG_HISTOGRAM #include - +#include namespace vcg { /** @@ -118,7 +121,7 @@ void Histogram::SetRange(ScalarType _minv, ScalarType _maxv, int _n, R.resize(n+1); double dlt=(maxv-minv); for(int i=0;i int Histogram::Interize(ScalarType val)