数学相关实用函数。

comath的Python项目详细描述


PyPI-StatusPyPI-VersionsBuild-StatusCodecovLICENCE

一个小的纯python包,用于数学相关的实用程序函数。

>>>fromcomath.arrayimportpercentile>>>percentile([4,6,8,9,11],0.4)7.0

1   Installation

使用以下命令安装comath

pip install comath

2   Use

comath分为四个子模块。

2.1   array

数组操作,如百分位数和中值。

2.2   func

效用函数类似于一个平滑的阶跃函数和最近的2次方。

2.3   metric

计算移动度量(移动平均、精度和方差)。

2.4   segment

定义一维线段。

3   Contributing

包作者和当前维护者是shay palachy(shay.palachy@gmail.com);非常欢迎您向他寻求帮助。捐款是非常受欢迎的。

3.1   Installing for development

克隆:

git clone git@github.com:shaypal5/comath.git

以开发模式安装,测试依赖项:

cd comath
pip install -e ".[test]"

3.2   Running the tests

要运行测试,请使用:

python -m pytest --cov=comath --doctest-modules

3.3   Adding documentation

这个项目是使用numpy docstring conventions来记录的,之所以选择它们,是因为它们可能是最广泛传播的约定,它们都得到了sphinx等常用工具的支持,并产生了人类可读的docstring(当然,在我个人看来)。在记录添加到此项目中的代码时,请遵循these conventions

4   Credits

由shay palachy创建(shay.palachy@gmail.com)。

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

推荐PyPI第三方库


热门话题
带Maven的Eclipse Java存储库:缺少工件:compile   java如何以编程方式停止RMI服务器并通知所有客户端   java Roboguice抛出ClassNotFoundException:AnnotationDatabaseImpl   java为什么lucene 4.0删除IndexWriter类的两个构造函数?   nls如何避免java项目上不需要的日志消息?   测试无法在Selenium Webdriver(java)中定位iframe   使用XML的java servlet   java如何使用jxl用****屏蔽单元格   java使用SQLite从数据库中选择“没有这样的列”   导入扫描程序后出现java编译错误   插入查询的java空指针异常   使用创建PostgreSQL数据库。Java应用中的sql脚本   java使用jsoup将HTML解析为格式化的明文