DATA GENERATION DEVICE, DATA GENERATION METHOD, AND PROGRAM

To provide a data generation device, a data generation method, and a program for easily generating power-law distribution data.SOLUTION: A data generation device comprises a random number generation unit that generates a random number, and a data generation unit that generates power-law distribution...

Full description

Saved in:
Bibliographic Details
Main Author MATSUNAGA TSUTOMU
Format Patent
LanguageEnglish
Japanese
Published 04.04.2019
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:To provide a data generation device, a data generation method, and a program for easily generating power-law distribution data.SOLUTION: A data generation device comprises a random number generation unit that generates a random number, and a data generation unit that generates power-law distribution data using L (where L is a positive integer) pieces of elements having integer values of 0 or more. The data generation unit executes: first processing of distributing, based on a random number generated by the random number generation unit, a total number M (where M is a positive integer) and assigning it to each of the L elements; second processing of selecting, based on the random number generated by the random number generation unit, one element out of the L pieces of elements as a first element; third processing of selecting, based on the random number generated by the random number generation unit, one element as a second element from among elements selectable from the L pieces of elements to the first element; fourth processing of moving, when a value of the first element is 1 or more, one element value from the first element to the second element; and fifth processing of repeating the second processing to the fourth processing.SELECTED DRAWING: Figure 1 【課題】べき分布データを容易に生成する。【解決手段】データ生成装置は、乱数を生成する乱数生成部と、0以上の整数の値を有するL個(ただしLは正の整数)の要素を利用して、べき分布データを生成するデータ生成部であって、乱数生成部が生成した乱数に基づいて、総数M(ただしMは正の整数)を分配してL個の要素の各々に割り当てる第1の処理と、乱数生成部が生成した乱数に基づいて、L個の要素のうちから1つの要素を第1の要素として選択する第2の処理と、L個の要素から第1の要素に対して予め定められた一部の選択可能な要素のうちから、乱数生成部が生成した乱数に基づいて、1つの要素を第2の要素として選択する第3の処理と、第1の要素の値が1以上である場合に、第1の要素から第2の要素に要素の値を1つ移動する第4の処理と、第2の処理から第4の処理を繰り返し行う第5の処理とを実行するデータ生成部とを備える。【選択図】図1
Bibliography:Application Number: JP20170177706