- Machine Learning for Developers
- Rodolfo Bonnin
- 88字
- 2021-07-02 15:46:47
Uniform distribution
This very common distribution is the first continuous distribution that we will see. As the name implies, it has a constant probability value for any interval of the domain.
In order to integrate to 1, a and b being the extreme of the function, this probability has the value of 1/(b-a).
Let's generate a plot with a sample uniform distribution using a very regular histogram, as generated by the following code:
plt.figure()
uniform_low=0.25
uniform_high=0.8
plt.hist(uniform, 50, normed=1)
plt.show()
Take look at the following graph:

Uniform distribution
推薦閱讀
- Java游戲服務器架構實戰
- Magento 2 Development Cookbook
- Learning Neo4j 3.x(Second Edition)
- PhpStorm Cookbook
- Node.js Design Patterns
- Yii Project Blueprints
- Java編程從入門到精通
- Learning Unreal Engine Game Development
- Instant GLEW
- SFML Game Development
- Developing Java Applications with Spring and Spring Boot
- Spring Boot從入門到實戰
- Java Script從入門到精通(第5版)
- Learning Puppet
- HTML5+CSS+JavaScript深入學習實錄