commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shing Hing Man <mat...@yahoo.com>
Subject [Math] Getter methods in Frequency when there is no data
Date Wed, 11 Aug 2004 14:41:01 GMT
Hi,
  I have tested all the getter methods of 
 org.apache.commons.math.stat.univariate.Frequency
when 
no data has been added. (If anyone is interested, the
JUnit test file 
is attached.) 
Here is a summary of the result.

Method                   Result
getCount                 returns 0 (as expected)
getCumFreq             
java.util.NoSuchElementException
getCumPct               
java.util.NoSuchElementException
getPct			 returns NaN  
f.getSumFreq             return 0 (as expected)


Is it reasonable to expect all the getter methods to
return 0, when
there is no data ?

My  version of org.apache.commons.math  is dated 10th
August, 2004.

regards,
Shing


=====
Home page :
  http://uk.geocities.com/matmsh/index.html


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all
new features - even more fun!  http://uk.messenger.yahoo.com
Mime
View raw message