A method for generating a stream of random numbers which is representative of a probability distribution function, the method comprising receiving a set of K values xi (i=1, . . . K), thereby to define a range within which all of said values fall, and information indicative of the relative probability of each value under said probability distribution function, for each individual value xi (i=1, . . . K) generating a set of ni numbers uniformly distributed over a vicinity of said individual value xi, where ni is determined, using said information, to reflect the relative probability of said individual value xi, and where the vicinities of xi, for all i=1 . . . K partition said range within which all of said values fall, and providing a stream of numbers by randomly selecting numbers from a set S comprising the union of said sets of ni numbers, for i=1, . . . K.
展开▼
机译:一种用于生成表示概率分布函数的随机数流的方法,该方法包括接收一组K个值x i Sub>(i = 1,... K),从而定义对于每个单独的值x i Sub>(i = 1,.. K)生成,所有所述值均落入的范围以及指示在所述概率分布函数下每个值的相对概率的信息一组均匀分布在所述个体值x i Sub>附近的n i Sub>数,其中使用所述信息确定n i Sub>,以反映了所述单个值x i Sub>的相对概率,以及对于所有i = 1的x i Sub>附近。 。 。 K划分所有所述值落入的范围,并通过从包括n个 i Sub>个数的集合的并集的集合S中随机选择数字来提供数字流,其中i = 1,...。 。 。 K.
展开▼