필터 지우기
필터 지우기

infinite domain uniform random number

조회 수: 1 (최근 30일)
etcann
etcann 2011년 12월 21일
Hello,
I am wondering if I can generate a set of random numbers which are distributed uniformly in an (-\infty, \infty) domain.
Thank you :)

답변 (2개)

Andrew Newell
Andrew Newell 2011년 12월 21일
Not in practice. If you could, then with probability 1 they would be too large to represent.

Walter Roberson
Walter Roberson 2011년 12월 21일
No, a uniform distribution over an infinite domain would require that each point have a probability of 0. And you would not be able to represent any results outside of +/- 1.7E308 as that is about the largest number that can be represented in double precision.
Uniform distribution over [-realmax, realmax] is not possible either, as double precision floating point numbers are not able to represent all numbers in that range
The number of distinct double precision floating numbers is less than 10^20, and those are not evenly spaced.

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by