Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axect/numeric
Go Package for Numerical Calculations
https://github.com/axect/numeric
array go-packages numerical-calculations statistics
Last synced: about 1 month ago
JSON representation
Go Package for Numerical Calculations
- Host: GitHub
- URL: https://github.com/axect/numeric
- Owner: Axect
- Created: 2017-09-19T08:37:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T02:34:06.000Z (about 6 years ago)
- Last Synced: 2024-10-15T21:45:20.843Z (3 months ago)
- Topics: array, go-packages, numerical-calculations, statistics
- Language: Go
- Homepage:
- Size: 1.33 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Numeric
Go Package for Numerical Calculations & Statistics
## 0. Notation
* Vector is just []float64
* Matrix is just [][]float64For example
```go
package mainimport (
"github.com/Axect/Numeric/array"
"github.com/Axect/Numeric/stats"
)func main() {
A := array.Create(1, 1, 100) // [1, 2, 3, 4, ... , 100]
m := stats.Mean(A) // Mean
v := stats.Var(A) // Variance
B := array.Create(-100, 1, -1)
array.Write([]Vector{A, B}, "test.csv") // Write to csvfile
}
```## 1. Array
Array has some vector operations.
* Create (Vector)
* Zeros (Matrix)
* Eyes (Matrix)
* MatrixForm
* Float2Int
* Transpose (Matrix)
* Det
* Minor
* Inverse
* Sum
* Pow
* Sub
* Add
* Mul
* Inner
* AddConst (Vector, float64)
* SubConst
* DivisionConst
* Float2Int ([]float64 -> []int64)
* Write ([]Vector -> csv)## 2. Stats
Stats has Probability & Statistics functions
* Factorial
* Perm
* Comb
* Homonomial
* Mean
* Var
* Std
* Cov
* CovMatrix
* Cor (Correlation Coefficient)
* Moment
* NormalDist
* BinormialDist