跳转到主要内容

添加具有不确定性的新浮点类型

项目描述

labfis.py

Travis - CI PyPI License

描述

一个用于不确定性和误差传播的小型库。

误差传播

不确定性按照国际度量衡局(BIPM)建立的高斯传播近似进行分析计算

比较两个labfloats使用以下方法

假设

  • 如果它们相等,它们必须满足
  • 如果它们不同,它们必须满足

注意:两种labfloats可能通过这些方法既不相同也不相等。

由IFSC的物理实验室学生制作,他们不能使用uncertainties.py,因为它在计算中使用平均绝对偏差。

用法

只需使用from labfis import labfloat导入并创建一个labfloat对象,如下例所示

>>> from labfis import labfloat
>>> a = labfloat(1,3)
>>> b = labfloat(2,4)
>>> a*b
(2 ± 7)

查看Wiki获取更多详细信息。

安装

使用以下命令安装主版本

pip install labfis

使用以下命令安装开发版本

pip install git+https://github.com/phisgroup/labfis.py@development

参考资料

  1. Kirchner, James. "数据分析工具包 #5: 不确定性分析和误差传播" (PDF). 加州大学伯克利地震学实验室. 摘自2016年4月22日。
  2. Goodman, Leo (1960). "On the Exact Variance of Products". 美国统计学会会刊. 55 (292): 708–713. doi:10.2307/2281592. JSTOR 2281592.
  3. Ochoa1,Benjamin; Belongie, Serge "Covariance Propagation for Guided Matching"
  4. Ku, H. H. (October 1966). "Notes on the use of propagation of error formulas". 美国国家标准局研究期刊. 70C (4): 262. doi:10.6028/jres.070c.025. ISSN 0022-4316. Retrieved 3 October 2012.
  5. Clifford, A. A. (1973). Multivariate error analysis: a handbook of error propagation and calculation in many-parameter systems. John Wiley & Sons. ISBN 978-0470160558.
  6. Lee, S. H.; Chen, W. (2009). "A comparative study of uncertainty propagation methods for black-box-type problems". 结构优化与多学科优化. 37 (3): 239–253. doi:10.1007/s00158-008-0234-7.
  7. Johnson, Norman L.; Kotz, Samuel; Balakrishnan, Narayanaswamy (1994). Continuous Univariate Distributions, Volume 1. Wiley. p. 171. ISBN 0-471-58495-9.
  8. Lecomte, Christophe (May 2013). "Exact statistics of systems with uncertainties: an analytical theory of rank-one stochastic dynamic systems". 声音与振动期刊. 332 (11): 2750–2776. doi:10.1016/j.jsv.2012.12.009.
  9. "A Summary of Error Propagation" (PDF). p. 2. Retrieved 2016-04-04.
  10. "Propagation of Uncertainty through Mathematical Operations" (PDF). p. 5. Retrieved 2016-04-04.
  11. "Strategies for Variance Estimation" (PDF). p. 37. Retrieved 2013-01-18.
  12. Harris, Daniel C. (2003), Quantitative chemical analysis(6th ed.), Macmillan, p. 56, ISBN 978-0-7167-4464-1
  13. "Error Propagation tutorial" (PDF). Foothill College. October 9, 2009. Retrieved 2012-03-01.
  14. Helene, O.; Vanin, V.. Tratamento estatístico de dados em física experimental. São Paulo: Editora Edgard Blücher, 1981.
  15. Vuolo, J. E.. Fundamentos da teoria de erros. 2. ed. São Paulo: Editora Edgard Blücher, 1993.

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码发行版

labfis-1.2.1.tar.gz (14.1 kB 查看哈希值)

上传于 源代码

构建发行版

labfis-1.2.1-py3-none-any.whl (11.5 kB 查看哈希值)

上传于 Python 3

由以下提供支持