[sv-bc] $dist_ functions questions

From: Paul Floyd <Paul_Floyd@mentor.com>
Date: Fri Jun 03 2011 - 09:33:44 PDT

Hi

Can anyone point me to information about the licence for using the C
source code in the 1364-2005 LRM please?

I also have a few remarks about these functions. t and chi_square have
integral deg_of_freedom, whilst mathematically speaking I'd expect to be
able to use reals.

There are imbalanced parentheses in rtl_dist_uniform

r =(uniform(seed,start,end)+
2147483648.0)/4294967295.0);

I'd say that the last closing parenthesis is superfluous.

If anyone is going to tidy this up, then I'd also suggest using ANSI
function definitions rather than K&R, and including math.h rather than
directly declaring pow and sqrt.

Regards
Paul Floyd

-- 
Dr Paul Floyd
Mentor Graphics Corporation
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Jun 3 09:34:12 2011

This archive was generated by hypermail 2.1.8 : Fri Jun 03 2011 - 09:34:18 PDT