30 import daal.algorithms.distributions
as distributions
31 import daal.algorithms.distributions.normal
as normal
32 from daal.algorithms.engines.mt19937
import Batch_Float64DefaultDense_create
as create
33 from daal.data_management
import HomogenNumericTable, NumericTableIface
35 utils_folder = os.path.realpath(os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
36 if utils_folder
not in sys.path:
37 sys.path.insert(0, utils_folder)
38 from utils
import printNumericTable
40 if __name__ ==
"__main__":
42 dataTable = HomogenNumericTable(1, 10, NumericTableIface.doAllocate)
45 normal = normal.Batch()
48 normal.input.set(distributions.tableToFill, dataTable)
51 normal.parameter.engine = create(777)
57 printNumericTable(dataTable,
"Normal distribution output:")