# maths
**Repository Path**: RocsSun/maths
## Basic Information
- **Project Name**: maths
- **Description**: 数学方法的一些封装。
- **Primary Language**: Go
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-06-24
- **Last Updated**: 2022-06-27
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# maths
## 介绍
数学方法的一些封装。
目前封装的函数有一下:
### func Sum[args int | int8 | int16 | int32 | int64 | float64 | float32](nums []args) float64
求取累加和
### func EachReduceAvgSquareSums[args int | int8 | int16 | int32 | int64 | float64 | float32](nums []args) float64
求每个数减去平均数的平方和。
### func ArithmeticAverage[args int | int8 | int16 | int32 | int64 | float64 | float32](nums []args) float64
求取数组的算术平均值
### func PopulationVariance[args int | int8 | int16 | int32 | int64 | float64 | float32](nums []args) float64
求取数组的总体方差
### func SampleVariance[args int | int8 | int16 | int32 | int64 | float64 | float32](nums []args) float64
求取数组的样本方差
### func OverallStandardDeviation[args int | int8 | int16 | int32 | int64 | float64 | float32](nums []args) float64
求取数组的总体标准差。
### func SampleStandardDeviation[args int | int8 | int16 | int32 | int64 | float64 | float32](nums []args) float64
求取数组的样本标准差。
## 使用说明
`go version >= 1.18`
go mod 模式直接使用以下命令安装。
`go get -u gitee.com/RocsSun/maths`
在代码中使用。
`import "gitee.com/RocsSun/maths"`
## 参与贡献
欢迎大佬补充函数。
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request