|
From: pchacin <pc...@ac...> - 2006-12-30 15:45:08
|
Greetings I'm experiencing a very frustrating problem when creating a Histogram in RepastJ 3.0. From time to time, I get this exception: Exception in thread "Thread-4" java.lang.IllegalArgumentException: max <= min at hep.aida.ref.FixedAxis.<init>(Unknown Source) at hep.aida.ref.Histogram1D.<init>(Unknown Source) at uchicago.src.sim.analysis.HistogramItem.getBinValues(HistogramItem.java:215) at uchicago.src.sim.analysis.OpenHistogramStat.record(OpenHistogramStat.java:190) at uchicago.src.sim.analysis.OpenHistogram.step(OpenHistogram.java:293) at simrealms.views.histograms.HistogramView.refresh(HistogramView.java:98) The way I'm creating the histogram is hard to show because I created a simulation framework that wraps the Repast classses. However, I'm pretty sure that the values in the histogram are in the range 0.0 1.0. and I created it with these values as lower and upper bound, respectly. However, in some circunstances the max and minimum could be the same (both 0 or both 1) and therefore the condition max <= min could become true. If this is the reason, I found this behavor annoying, because there is no reason why the histogram could have a 100% of items with the same value. I'll appreciate any help regarding this issue. Thanks is advance. Pablo -- View this message in context: http://www.nabble.com/IllegalArgumentException%3A-max-%3C%3D-min-tf2898857.html#a8098997 Sent from the repast-developer mailing list archive at Nabble.com. |