Normal distribution

3.53K viewsScripting
0

Hello,
I’m trying to invoke built in normal distribution function but the script returns an error.
the function looks like this:
result=normdist(100, 10, 1,1)
return result
Could someone please help with this?
Thanks!

0

Hi Lydia,

Unfortunately, you can’t call the built-in functions with your scripts and therefore you have to write your own normal distribution function within your model.

Maybe I can find some time today or tomorrow to develop a simple function.

All the best,
Dominik

0

Thanks a lot, I would appreciate!

0

Hi Lydia,

I scripted a simple Normal Distribution function today which can be used with the same parameters like the built-in version of Quantrix.

You can use the attached model “20120620 – NormalDistributionFunction – v1” as the template file where you can find the script in the Script Manager.

Further, I have added a test matrix to compare the results of the built-in and the user defined functions. Both functions deliver the same values as the test result is always “OK”.

Please note: The provided code is delivered “as is” and it needs more testing to make sure it works correctly.

Let me know if this is what you are looking for.

All the best,
Dominik

Latest Questions

Qloud Losing Formatting 4 Answers | 0 Votes
Meditation on timelines 3 Answers | 0 Votes