Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GaryBoone/GoStats
/ functions
Functions
97 in github.com/GaryBoone/GoStats
⨍
Functions
97
◇
Types & classes
2
↓ 202 callers
Function
checkFloat64
(x, y, tol float64, test string, t *testing.T)
stats/stats_test.go:506
↓ 88 callers
Function
checkNaN
(x float64, test string, t *testing.T)
stats/stats_test.go:512
↓ 38 callers
Method
Update
Incremental Functions Update the stats with the given value.
stats/stats.go:81
↓ 35 callers
Function
checkInt
Assertion functions used for tests check that the value x equals the expected value y
stats/stats_test.go:500
↓ 19 callers
Method
PopulationVariance
()
stats/stats.go:108
↓ 17 callers
Method
Mean
()
stats/stats.go:70
↓ 17 callers
Method
PopulationKurtosis
The kurtosis functions return _excess_ kurtosis, so that the kurtosis of a normal distribution = 0.0. Then kurtosis < 0.0 indicates platykurtic (flat)
stats/stats.go:151
↓ 17 callers
Method
PopulationSkew
()
stats/stats.go:136
↓ 17 callers
Method
SampleVariance
()
stats/stats.go:115
↓ 16 callers
Method
Count
Accessor Functions
stats/stats.go:50
↓ 16 callers
Method
Max
()
stats/stats.go:62
↓ 16 callers
Method
Min
()
stats/stats.go:58
↓ 16 callers
Method
SampleKurtosis
()
stats/stats.go:155
↓ 16 callers
Method
SampleSkew
()
stats/stats.go:140
↓ 16 callers
Method
SampleStandardDeviation
()
stats/stats.go:129
↓ 16 callers
Method
Sum
()
stats/stats.go:66
↓ 15 callers
Method
PopulationStandardDeviation
()
stats/stats.go:122
↓ 13 callers
Method
Update
Incremental Functions Update the stats with a new point.
stats/regression.go:52
↓ 12 callers
Function
LinearRegression
Batch Functions
stats/regression.go:117
↓ 9 callers
Method
Slope
()
stats/regression.go:71
↓ 7 callers
Method
Count
Accessor Functions
stats/regression.go:37
↓ 7 callers
Method
Intercept
()
stats/regression.go:77
↓ 7 callers
Method
InterceptStandardError
()
stats/regression.go:99
↓ 7 callers
Method
RSquared
()
stats/regression.go:81
↓ 7 callers
Method
SlopeStandardError
()
stats/regression.go:88
↓ 6 callers
Function
StatsPopulationVariance
(data []float64)
stats/stats.go:220
↓ 5 callers
Function
StatsMean
(data []float64)
stats/stats.go:207
↓ 4 callers
Function
StatsPopulationKurtosis
The kurtosis functions return _excess_ kurtosis
stats/stats.go:262
↓ 4 callers
Function
StatsSampleKurtosis
(data []float64)
stats/stats.go:277
↓ 3 callers
Function
StatsPopulationSkew
(data []float64)
stats/stats.go:240
↓ 3 callers
Function
StatsSampleVariance
(data []float64)
stats/stats.go:226
↓ 3 callers
Function
StatsSum
(data []float64)
stats/stats.go:200
↓ 3 callers
Function
checkFloat64Abs
(x, y, tol float64, test string, t *testing.T)
stats/stats_test.go:518
↓ 2 callers
Function
StatsCount
Batch functions These are non-incremental functions that operate only on the data given them. They're prefixed with 'Calc'.
stats/stats.go:170
↓ 2 callers
Function
StatsMax
(data []float64)
stats/stats.go:187
↓ 2 callers
Function
StatsMin
(data []float64)
stats/stats.go:174
↓ 2 callers
Function
StatsPopulationStandardDeviation
(data []float64)
stats/stats.go:232
↓ 2 callers
Function
StatsSampleSkew
(data []float64)
stats/stats.go:255
↓ 2 callers
Function
StatsSampleStandardDeviation
(data []float64)
stats/stats.go:236
↓ 2 callers
Method
UpdateArray
Update the stats with the given array of values.
stats/stats.go:102
↓ 2 callers
Method
UpdateArray
Update the stats with arrays of x and y values.
stats/regression.go:62
↓ 2 callers
Function
printArray
(name string, a []float64)
regression_demo/regression_demo.go:53
↓ 2 callers
Function
sumSquaredDeltas
(data []float64)
stats/stats.go:211
↓ 1 callers
Function
batchDemo
()
descriptive_statistics_demo/descriptive_stats_demo.go:65
↓ 1 callers
Function
batchRegressionDemo
()
regression_demo/regression_demo.go:64
↓ 1 callers
Function
checkInf
(x float64, test string, t *testing.T)
stats/stats_test.go:524
↓ 1 callers
Function
incrementalDemo
()
descriptive_statistics_demo/descriptive_stats_demo.go:23
↓ 1 callers
Function
incrementalRegressionDemo
()
regression_demo/regression_demo.go:22
↓ 1 callers
Function
makeArray
(size int, width, min float64)
descriptive_statistics_demo/descriptive_stats_demo.go:84
↓ 1 callers
Function
makeArray
(size int, width, min float64)
regression_demo/regression_demo.go:44
↓ 1 callers
Function
normalDistributionDemo
()
descriptive_statistics_demo/descriptive_stats_demo.go:104
↓ 1 callers
Function
printArray
(name string, a []float64)
descriptive_statistics_demo/descriptive_stats_demo.go:93
Function
BenchmarkCalcPopulationKurtosis10
(b *testing.B)
stats/stats_test.go:331
Function
BenchmarkCalcPopulationVariance10
benchmark on 10 values, so divide by 10 to estimate the per-value time for array calculations
stats/stats_test.go:324
Function
BenchmarkCalcSampleKurtosis10
(b *testing.B)
stats/stats_test.go:338
Function
BenchmarkCalcSampleKurtosis100k
Find the time to calculate Sample Kurtosis on an input array 100k random values. The benchmark will repeat this test b.N times to determine a stable t
stats/stats_test.go:348
Function
BenchmarkPopulationVarWUpdates10
Test the incremental Variance function by itself. This result is how fast the Variance is calculated _including_ the time to incrementally update the
stats/stats_test.go:310
Function
BenchmarkPopulationVariance10
Test the incremental Variance function by itself. This result is how fast the Variance is calculated not including the time to incrementally update th
stats/stats_test.go:293
Function
BenchmarkUpdate
Benchmark tests run with: go test stats.go stats_test.go -bench="Benchmark"
stats/stats_test.go:283
Method
Size
()
stats/stats.go:54
Method
Size
()
stats/regression.go:41
Function
TestArrayStats
Test the batch functions. Calculate the descriptive stats on the whole array.
stats/stats_test.go:242
Function
TestArrayStats2
(t *testing.T)
stats/stats_test.go:259
Function
TestLinearRegression0
Test batch functions
stats/regression_test.go:116
Function
TestLinearRegression01
Degenerate examples tests
stats/regression_test.go:182
Function
TestLinearRegression1
(t *testing.T)
stats/regression_test.go:128
Function
TestLinearRegression2
(t *testing.T)
stats/regression_test.go:140
Function
TestLinearRegression2Same
(t *testing.T)
stats/regression_test.go:194
Function
TestLinearRegression2SameX
(t *testing.T)
stats/regression_test.go:206
Function
TestLinearRegression2SameY
(t *testing.T)
stats/regression_test.go:218
Function
TestLinearRegression3
(t *testing.T)
stats/regression_test.go:152
Function
TestLinearRegression3WithSame
(t *testing.T)
stats/regression_test.go:230
Function
TestLinearRegression3WithSameX
(t *testing.T)
stats/regression_test.go:242
Function
TestLinearRegression3WithSameY
(t *testing.T)
stats/regression_test.go:254
Function
TestLinearRegression5
(t *testing.T)
stats/regression_test.go:164
Function
TestRegressionUpdate0
Test incremental functions
stats/regression_test.go:36
Function
TestRegressionUpdate1
(t *testing.T)
stats/regression_test.go:46
Function
TestRegressionUpdate2
(t *testing.T)
stats/regression_test.go:57
Function
TestRegressionUpdate3
(t *testing.T)
stats/regression_test.go:69
Function
TestRegressionUpdate5
(t *testing.T)
stats/regression_test.go:82
Function
TestRegressionUpdateArray5
(t *testing.T)
stats/regression_test.go:97
Function
TestUpdate0
Incremental stats tests With no updates, these are the results on initialization
stats/stats_test.go:62
Function
TestUpdate01
Degenerate examples tests Update() 1 0 value
stats/stats_test.go:369
Function
TestUpdate010
(t *testing.T)
stats/stats_test.go:472
Function
TestUpdate02
Update() 2 0 values
stats/stats_test.go:388
Function
TestUpdate03
Update() 3 0 values.
stats/stats_test.go:408
Function
TestUpdate04
Update() 4 0 values.
stats/stats_test.go:429
Function
TestUpdate05
(t *testing.T)
stats/stats_test.go:450
Function
TestUpdate1
Update() 1 value
stats/stats_test.go:80
Function
TestUpdate10
(t *testing.T)
stats/stats_test.go:183
Function
TestUpdate2
Update() 2 values
stats/stats_test.go:99
Function
TestUpdate3
Update() 3 values.
stats/stats_test.go:119
Function
TestUpdate4
Update() 4 values. Now all of the statistics are available.
stats/stats_test.go:140
Function
TestUpdate5
(t *testing.T)
stats/stats_test.go:161
Function
TestUpdateArray10
Update by array. In this case, we use slices to update via half of the array at a time.
stats/stats_test.go:205
Function
main
()
descriptive_statistics_demo/descriptive_stats_demo.go:124
Function
main
()
regression_demo/regression_demo.go:86