Difference between revisions of "Manuals/calci/DISCRETE"
Jump to navigation
Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''RANDOMNUMBERGENERATION'''(Number, RandomNumber, Distribution, NewTableFlag, Value, Probability) where, ''...") |
|||
Line 1: | Line 1: | ||
− | + | =RANDOMNUMBERGENERATION(NumVariable,RandomNumber,Distribution,NewTableFlag,ValueArr,Probability)= | |
− | |||
− | |||
where, | where, | ||
+ | *<math>NumVariable</math> represents the number of columns for displaying the random numbers, | ||
+ | *<math>RandomNumber</math> represents the number of rows for displaying the random numbers, | ||
+ | *<math>Distribution</math> is the distribution method (i.e. "Discrete") for creating random values, | ||
+ | *<math>NewTableFlag</math> is the flag TRUE or FALSE. | ||
+ | *<math>ValueArr</math> represents the array of values, | ||
+ | *<math>Probability</math> are the probability values between 0 to 1. | ||
− | + | DISCRETE RANDOMNUMBERGENERATION() is used to display the random numbers within finite range. | |
− | + | =Description= | |
− | + | RANDOMNUMBERGENERATION(NumVariable,RandomNumber,"Discrete",ValueArr,Probability) | |
− | + | *A discrete distribution is a distribution of a random variable that takes only finite set of values. | |
+ | *If <math>NewTableFlag</math> is TRUE, the result is displayed on new zspace. | ||
+ | *If <math>NewTableFlag</math> is FALSE, the result is displayed on the same zcube. If omitted, it is assumed to be FALSE. | ||
+ | *If <math>NumVariable</math> <0 or <math>RandomNumber</math> <0, Calci displays an error message. | ||
+ | *If <math>Probability</math> <0 or <math>Probability</math> >1, Calci displays an error message. | ||
+ | *The addition of all probability values should be equal to '1'. Else Calci displays an error message. | ||
− | + | =Examples= | |
− | + | =RANDOMNUMBERGENERATION(3,4,"Discrete",TRUE,[4,5,6,3,2,1],[0.2,0.1,0.3,0.2,0.1,0.1]) | |
+ | |||
+ | The above command displays the random numbers from the ValueArr with the respective probabilities in 3 columns and 4 rows in a separate zspace as - | ||
− | + | {| class="wikitable" | |
− | + | |- | |
− | + | | 3 || 1 || 3 | |
− | + | |- | |
− | + | | 4 || 4 || 6 | |
− | + | |- | |
− | + | | 3 || 6 || 6 | |
− | + | |- | |
− | + | | 1 || 3 || 3 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |- | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | 1 | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | =RANDOMNUMBERGENERATION(2,5,"Discrete",TRUE,[10,11,10.5],[0.4,0.4,0.2]) | |
− | + | The above command displays the random numbers from the ValueArr with the respective probabilities in 2 columns and 5 rows in the same zspace as command - | |
− | |||
− | {| | + | {| class="wikitable" |
− | + | |- | |
− | |- | + | | 10 || 11 |
− | + | |- | |
− | + | | 11 || 10 | |
− | | | + | |- |
− | | | + | | 10.5 || 11 |
− | | | + | |- |
− | |- | + | | 10.5 || 11 |
− | | | + | |- |
− | | | + | | 10 || 11 |
− | |||
− | |||
− | |||
− | |- | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | |- | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |- | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
|} | |} | ||
− | + | == See Also == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *[[Manuals/calci/RANDOMNUMBERGENERATION | RANDOMNUMBERGENERATION]] | |
− | + | *[[Manuals/calci/PATTERNED | PATTERNED]] | |
− | |||
− | + | == References == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *[http://en.wikipedia.org/wiki/Random_number_generation Random Number Generation] | |
− | + | *[http://en.wikipedia.org/wiki/Probability_distribution#Discrete_probability_distribution Discrete Probability Distribution] |
Revision as of 15:57, 30 March 2014
RANDOMNUMBERGENERATION(NumVariable,RandomNumber,Distribution,NewTableFlag,ValueArr,Probability)
where,
- represents the number of columns for displaying the random numbers,
- represents the number of rows for displaying the random numbers,
- is the distribution method (i.e. "Discrete") for creating random values,
- is the flag TRUE or FALSE.
- represents the array of values,
- are the probability values between 0 to 1.
DISCRETE RANDOMNUMBERGENERATION() is used to display the random numbers within finite range.
Description
RANDOMNUMBERGENERATION(NumVariable,RandomNumber,"Discrete",ValueArr,Probability)
- A discrete distribution is a distribution of a random variable that takes only finite set of values.
- If is TRUE, the result is displayed on new zspace.
- If is FALSE, the result is displayed on the same zcube. If omitted, it is assumed to be FALSE.
- If <0 or <0, Calci displays an error message.
- If <0 or >1, Calci displays an error message.
- The addition of all probability values should be equal to '1'. Else Calci displays an error message.
Examples
=RANDOMNUMBERGENERATION(3,4,"Discrete",TRUE,[4,5,6,3,2,1],[0.2,0.1,0.3,0.2,0.1,0.1])
The above command displays the random numbers from the ValueArr with the respective probabilities in 3 columns and 4 rows in a separate zspace as -
3 | 1 | 3 |
4 | 4 | 6 |
3 | 6 | 6 |
1 | 3 | 3 |
=RANDOMNUMBERGENERATION(2,5,"Discrete",TRUE,[10,11,10.5],[0.4,0.4,0.2])
The above command displays the random numbers from the ValueArr with the respective probabilities in 2 columns and 5 rows in the same zspace as command -
10 | 11 |
11 | 10 |
10.5 | 11 |
10.5 | 11 |
10 | 11 |