数学相关实用函数。
comath的Python项目详细描述
一个小的纯python包,用于数学相关的实用程序函数。
>>>fromcomath.arrayimportpercentile>>>percentile([4,6,8,9,11],0.4)7.0
内容
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.3 Adding documentation
这个项目是使用numpy docstring conventions来记录的,之所以选择它们,是因为它们可能是最广泛传播的约定,它们都得到了sphinx等常用工具的支持,并产生了人类可读的docstring(当然,在我个人看来)。在记录添加到此项目中的代码时,请遵循these conventions。
4 Credits
由shay palachy创建(shay.palachy@gmail.com)。