高斯分布和二项式分布

daigle-dist的Python项目详细描述


分布分析仪

这个软件包允许用户对高斯分布和二项分布的基本元素进行一些简单的分析。

这个包主要是作为将包加载到PyPi的测试用例/POC,但也可能对其他人有用。

要使用此软件包:

  1. pip install daigle-dist
  2. 运行Python
  3. 输入from distributions import Gaussian, Binomial
    3a.Gaussian(mean, stdev)
    3b.Binomial(mean,stdev)
  4. 属性包括:
  • read_data_file(): assigns the distribution object some data from a .txt file
  • mean: returns the distribution object's mean
  • stdev: returns the distribution object's standard deviation
  • calculate_mean(): assigns and returns a distribution object's mean
  • calculate_stdev(): assigns and returns a distribution object's standard deviation
  • replace_stats_with_data(): update attributes of p and n of binomial distribution object
  • plot_bar: bar chart plot of the outcomes and frequencies of a distribution object
  • pdf(): calculates the probability density function for a distribution object
  • plot_bar_pdf: bar chart plot of the probability density function of a distribution object
  1. 神奇的方法包括:
  • __add__: allows two distribution objects to be added to each other as well as calculate the mean and standard deviation of each other
  • __repr__: outputs the characteristics of a distribution object

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Eclipse内存分析器(MAT):不显示当前正在运行的进程   java Apache Velocity:转义字符不能作为关联数组键用于PHP   不截断零的java格式十进制输出   在另一个类文件中调用时返回空值的java getter   java集合获取连接   java解析json使用Gson登录系统应用程序强制关闭   java DelferredResult带有两个请求的ajax请求   java可降低功耗,同时应使用无线   java BoxLayout无法共享错误?   java如何使用计时器制作闹钟   java使用OAuth2保护RESTWeb服务:一般原则   java在一个jframe上显示多个图像和按钮