MCPcopy Create free account

hub / github.com/GaryBoone/GoStats / functions

Functions97 in github.com/GaryBoone/GoStats

↓ 202 callersFunctioncheckFloat64
(x, y, tol float64, test string, t *testing.T)
stats/stats_test.go:506
↓ 88 callersFunctioncheckNaN
(x float64, test string, t *testing.T)
stats/stats_test.go:512
↓ 38 callersMethodUpdate
Incremental Functions Update the stats with the given value.
stats/stats.go:81
↓ 35 callersFunctioncheckInt
Assertion functions used for tests check that the value x equals the expected value y
stats/stats_test.go:500
↓ 19 callersMethodPopulationVariance
()
stats/stats.go:108
↓ 17 callersMethodMean
()
stats/stats.go:70
↓ 17 callersMethodPopulationKurtosis
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 callersMethodPopulationSkew
()
stats/stats.go:136
↓ 17 callersMethodSampleVariance
()
stats/stats.go:115
↓ 16 callersMethodCount
Accessor Functions
stats/stats.go:50
↓ 16 callersMethodMax
()
stats/stats.go:62
↓ 16 callersMethodMin
()
stats/stats.go:58
↓ 16 callersMethodSampleKurtosis
()
stats/stats.go:155
↓ 16 callersMethodSampleSkew
()
stats/stats.go:140
↓ 16 callersMethodSampleStandardDeviation
()
stats/stats.go:129
↓ 16 callersMethodSum
()
stats/stats.go:66
↓ 15 callersMethodPopulationStandardDeviation
()
stats/stats.go:122
↓ 13 callersMethodUpdate
Incremental Functions Update the stats with a new point.
stats/regression.go:52
↓ 12 callersFunctionLinearRegression
Batch Functions
stats/regression.go:117
↓ 9 callersMethodSlope
()
stats/regression.go:71
↓ 7 callersMethodCount
Accessor Functions
stats/regression.go:37
↓ 7 callersMethodIntercept
()
stats/regression.go:77
↓ 7 callersMethodInterceptStandardError
()
stats/regression.go:99
↓ 7 callersMethodRSquared
()
stats/regression.go:81
↓ 7 callersMethodSlopeStandardError
()
stats/regression.go:88
↓ 6 callersFunctionStatsPopulationVariance
(data []float64)
stats/stats.go:220
↓ 5 callersFunctionStatsMean
(data []float64)
stats/stats.go:207
↓ 4 callersFunctionStatsPopulationKurtosis
The kurtosis functions return _excess_ kurtosis
stats/stats.go:262
↓ 4 callersFunctionStatsSampleKurtosis
(data []float64)
stats/stats.go:277
↓ 3 callersFunctionStatsPopulationSkew
(data []float64)
stats/stats.go:240
↓ 3 callersFunctionStatsSampleVariance
(data []float64)
stats/stats.go:226
↓ 3 callersFunctionStatsSum
(data []float64)
stats/stats.go:200
↓ 3 callersFunctioncheckFloat64Abs
(x, y, tol float64, test string, t *testing.T)
stats/stats_test.go:518
↓ 2 callersFunctionStatsCount
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 callersFunctionStatsMax
(data []float64)
stats/stats.go:187
↓ 2 callersFunctionStatsMin
(data []float64)
stats/stats.go:174
↓ 2 callersFunctionStatsPopulationStandardDeviation
(data []float64)
stats/stats.go:232
↓ 2 callersFunctionStatsSampleSkew
(data []float64)
stats/stats.go:255
↓ 2 callersFunctionStatsSampleStandardDeviation
(data []float64)
stats/stats.go:236
↓ 2 callersMethodUpdateArray
Update the stats with the given array of values.
stats/stats.go:102
↓ 2 callersMethodUpdateArray
Update the stats with arrays of x and y values.
stats/regression.go:62
↓ 2 callersFunctionprintArray
(name string, a []float64)
regression_demo/regression_demo.go:53
↓ 2 callersFunctionsumSquaredDeltas
(data []float64)
stats/stats.go:211
↓ 1 callersFunctionbatchDemo
()
descriptive_statistics_demo/descriptive_stats_demo.go:65
↓ 1 callersFunctionbatchRegressionDemo
()
regression_demo/regression_demo.go:64
↓ 1 callersFunctioncheckInf
(x float64, test string, t *testing.T)
stats/stats_test.go:524
↓ 1 callersFunctionincrementalDemo
()
descriptive_statistics_demo/descriptive_stats_demo.go:23
↓ 1 callersFunctionincrementalRegressionDemo
()
regression_demo/regression_demo.go:22
↓ 1 callersFunctionmakeArray
(size int, width, min float64)
descriptive_statistics_demo/descriptive_stats_demo.go:84
↓ 1 callersFunctionmakeArray
(size int, width, min float64)
regression_demo/regression_demo.go:44
↓ 1 callersFunctionnormalDistributionDemo
()
descriptive_statistics_demo/descriptive_stats_demo.go:104
↓ 1 callersFunctionprintArray
(name string, a []float64)
descriptive_statistics_demo/descriptive_stats_demo.go:93
FunctionBenchmarkCalcPopulationKurtosis10
(b *testing.B)
stats/stats_test.go:331
FunctionBenchmarkCalcPopulationVariance10
benchmark on 10 values, so divide by 10 to estimate the per-value time for array calculations
stats/stats_test.go:324
FunctionBenchmarkCalcSampleKurtosis10
(b *testing.B)
stats/stats_test.go:338
FunctionBenchmarkCalcSampleKurtosis100k
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
FunctionBenchmarkPopulationVarWUpdates10
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
FunctionBenchmarkPopulationVariance10
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
FunctionBenchmarkUpdate
Benchmark tests run with: go test stats.go stats_test.go -bench="Benchmark"
stats/stats_test.go:283
MethodSize
()
stats/stats.go:54
MethodSize
()
stats/regression.go:41
FunctionTestArrayStats
Test the batch functions. Calculate the descriptive stats on the whole array.
stats/stats_test.go:242
FunctionTestArrayStats2
(t *testing.T)
stats/stats_test.go:259
FunctionTestLinearRegression0
Test batch functions
stats/regression_test.go:116
FunctionTestLinearRegression01
Degenerate examples tests
stats/regression_test.go:182
FunctionTestLinearRegression1
(t *testing.T)
stats/regression_test.go:128
FunctionTestLinearRegression2
(t *testing.T)
stats/regression_test.go:140
FunctionTestLinearRegression2Same
(t *testing.T)
stats/regression_test.go:194
FunctionTestLinearRegression2SameX
(t *testing.T)
stats/regression_test.go:206
FunctionTestLinearRegression2SameY
(t *testing.T)
stats/regression_test.go:218
FunctionTestLinearRegression3
(t *testing.T)
stats/regression_test.go:152
FunctionTestLinearRegression3WithSame
(t *testing.T)
stats/regression_test.go:230
FunctionTestLinearRegression3WithSameX
(t *testing.T)
stats/regression_test.go:242
FunctionTestLinearRegression3WithSameY
(t *testing.T)
stats/regression_test.go:254
FunctionTestLinearRegression5
(t *testing.T)
stats/regression_test.go:164
FunctionTestRegressionUpdate0
Test incremental functions
stats/regression_test.go:36
FunctionTestRegressionUpdate1
(t *testing.T)
stats/regression_test.go:46
FunctionTestRegressionUpdate2
(t *testing.T)
stats/regression_test.go:57
FunctionTestRegressionUpdate3
(t *testing.T)
stats/regression_test.go:69
FunctionTestRegressionUpdate5
(t *testing.T)
stats/regression_test.go:82
FunctionTestRegressionUpdateArray5
(t *testing.T)
stats/regression_test.go:97
FunctionTestUpdate0
Incremental stats tests With no updates, these are the results on initialization
stats/stats_test.go:62
FunctionTestUpdate01
Degenerate examples tests Update() 1 0 value
stats/stats_test.go:369
FunctionTestUpdate010
(t *testing.T)
stats/stats_test.go:472
FunctionTestUpdate02
Update() 2 0 values
stats/stats_test.go:388
FunctionTestUpdate03
Update() 3 0 values.
stats/stats_test.go:408
FunctionTestUpdate04
Update() 4 0 values.
stats/stats_test.go:429
FunctionTestUpdate05
(t *testing.T)
stats/stats_test.go:450
FunctionTestUpdate1
Update() 1 value
stats/stats_test.go:80
FunctionTestUpdate10
(t *testing.T)
stats/stats_test.go:183
FunctionTestUpdate2
Update() 2 values
stats/stats_test.go:99
FunctionTestUpdate3
Update() 3 values.
stats/stats_test.go:119
FunctionTestUpdate4
Update() 4 values. Now all of the statistics are available.
stats/stats_test.go:140
FunctionTestUpdate5
(t *testing.T)
stats/stats_test.go:161
FunctionTestUpdateArray10
Update by array. In this case, we use slices to update via half of the array at a time.
stats/stats_test.go:205
Functionmain
()
descriptive_statistics_demo/descriptive_stats_demo.go:124
Functionmain
()
regression_demo/regression_demo.go:86