-
Notifications
You must be signed in to change notification settings - Fork 3
The R script can be used as follows to create M sets each containing N random values that sum up to 1.0:
# some codeThe matrix contains M=3 sets each containing N=5 values:
# the resulting three setsThey all sum up to 1.0:
# showing that sum is 1.0 for all three setsFor most applications such as Sensitivity Analysis, however, the method is providing the user with random numbers distributed between 0 and 1 that need to be used to perform the analysis.
Hence, the algorithm allows you to provide a matrix of random numbers R (M rows and N-1 columns) that will be transformed into N weights that will sum up to 1.0.
# some codeThe matrix contains M=3 sets each containing N=5 values:
# the resulting three sets
© 2019-2021 - PieShareDistribution - juliane.mai@uwaterloo.ca
Funded under IMPC project of Global Water Futures program.
Table of contents