Dear All,

I've noticed that the family of cumulative distribution functions such as 
cdfnor(), which are very handy because of their flexibility, in the syntax cases

X = cdfnor("X", Mean, Std, P, Q)
Mean = cdfnor("Mean", Std, P, Q, X)
Std = cdfnor("Std", P, Q, X, Mean)

it is required to provide both P and Q as arguments, when only one is really 
necessary since Q must equal 1-P. Argument Q is, thus, redundant, and requires 
extra calculation (even if a trivial one). In the first syntax one could easily 
remove Q, but the syntax checker casts an error:

cdfnor: Wrong number of input argument(s): 5 expected.

Is there a reason for such a strange requirement?

I know that changing the syntax of an established function could cause 
back-compatibility issues, but it would be much better.

A possible solution would be to create a single function cdf(), the first argument of which could 
be a string coding the type of distribution, such as "nor", "chi", etc., which 
could be omitted in the default case of the most frequent one, the normal distribution. This could 
be interesting also since new distributions could be added in the future without the need of a new 
function.

Regards,

Federico Miyara

[https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
      Libre de 
virus.www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

_______________________________________________
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users

Reply via email to