diff --git a/covariancematrix_test.go b/covariancematrix_test.go index 9af15e28..cc42939b 100644 --- a/covariancematrix_test.go +++ b/covariancematrix_test.go @@ -130,68 +130,68 @@ func benchmarkCovarianceMatrixInPlace(b *testing.B, m mat64.Matrix) { func BenchmarkCovarianceMatrixSmallxSmall(b *testing.B) { // 10 * 10 elements - x := randMat(SMALL, SMALL) + x := randMat(small, small) benchmarkCovarianceMatrix(b, x) } func BenchmarkCovarianceMatrixSmallxMedium(b *testing.B) { // 10 * 1000 elements - x := randMat(SMALL, MEDIUM) + x := randMat(small, medium) benchmarkCovarianceMatrix(b, x) } func BenchmarkCovarianceMatrixMediumxSmall(b *testing.B) { // 1000 * 10 elements - x := randMat(MEDIUM, SMALL) + x := randMat(medium, small) benchmarkCovarianceMatrix(b, x) } func BenchmarkCovarianceMatrixMediumxMedium(b *testing.B) { // 1000 * 1000 elements - x := randMat(MEDIUM, MEDIUM) + x := randMat(medium, medium) benchmarkCovarianceMatrix(b, x) } func BenchmarkCovarianceMatrixLargexSmall(b *testing.B) { // 1e5 * 10 elements - x := randMat(LARGE, SMALL) + x := randMat(large, small) benchmarkCovarianceMatrix(b, x) } func BenchmarkCovarianceMatrixHugexSmall(b *testing.B) { // 1e7 * 10 elements - x := randMat(HUGE, SMALL) + x := randMat(huge, small) benchmarkCovarianceMatrix(b, x) } func BenchmarkCovarianceMatrixSmallxSmallInPlace(b *testing.B) { // 10 * 10 elements - x := randMat(SMALL, SMALL) + x := randMat(small, small) benchmarkCovarianceMatrixInPlace(b, x) } func BenchmarkCovarianceMatrixSmallxMediumInPlace(b *testing.B) { // 10 * 1000 elements - x := randMat(SMALL, MEDIUM) + x := randMat(small, medium) benchmarkCovarianceMatrixInPlace(b, x) } func BenchmarkCovarianceMatrixMediumxSmallInPlace(b *testing.B) { // 1000 * 10 elements - x := randMat(MEDIUM, SMALL) + x := randMat(medium, small) benchmarkCovarianceMatrixInPlace(b, x) } func BenchmarkCovarianceMatrixMediumxMediumInPlace(b *testing.B) { // 1000 * 1000 elements - x := randMat(MEDIUM, MEDIUM) + x := randMat(medium, medium) benchmarkCovarianceMatrixInPlace(b, x) } func BenchmarkCovarianceMatrixLargexSmallInPlace(b *testing.B) { // 1e5 * 10 elements - x := randMat(LARGE, SMALL) + x := randMat(large, small) benchmarkCovarianceMatrixInPlace(b, x) } func BenchmarkCovarianceMatrixHugexSmallInPlace(b *testing.B) { // 1e7 * 10 elements - x := randMat(HUGE, SMALL) + x := randMat(huge, small) benchmarkCovarianceMatrixInPlace(b, x) } diff --git a/moments_bench_test.go b/moments_bench_test.go index 980bf352..6df41394 100644 --- a/moments_bench_test.go +++ b/moments_bench_test.go @@ -17,10 +17,10 @@ import ( ) const ( - SMALL = 10 - MEDIUM = 1000 - LARGE = 100000 - HUGE = 10000000 + small = 10 + medium = 1000 + large = 100000 + huge = 10000000 ) // tests for unweighted versions @@ -41,46 +41,46 @@ func benchmarkMean(b *testing.B, s, wts []float64) { } func BenchmarkMeanSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkMean(b, s, nil) } func BenchmarkMeanMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkMean(b, s, nil) } func BenchmarkMeanLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkMean(b, s, nil) } func BenchmarkMeanHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkMean(b, s, nil) } func BenchmarkMeanSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkMean(b, s, wts) } func BenchmarkMeanMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkMean(b, s, wts) } func BenchmarkMeanLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkMean(b, s, wts) } func BenchmarkMeanHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkMean(b, s, wts) } @@ -92,46 +92,46 @@ func benchmarkVariance(b *testing.B, s, wts []float64) { } func BenchmarkVarianceSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkVariance(b, s, nil) } func BenchmarkVarianceMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkVariance(b, s, nil) } func BenchmarkVarianceLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkVariance(b, s, nil) } func BenchmarkVarianceHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkVariance(b, s, nil) } func BenchmarkVarianceSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkVariance(b, s, wts) } func BenchmarkVarianceMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkVariance(b, s, wts) } func BenchmarkVarianceLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkVariance(b, s, wts) } func BenchmarkVarianceHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkVariance(b, s, wts) } @@ -143,46 +143,46 @@ func benchmarkStdDev(b *testing.B, s, wts []float64) { } func BenchmarkStdDevSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkStdDev(b, s, nil) } func BenchmarkStdDevMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkStdDev(b, s, nil) } func BenchmarkStdDevLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkStdDev(b, s, nil) } func BenchmarkStdDevHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkStdDev(b, s, nil) } func BenchmarkStdDevSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkStdDev(b, s, wts) } func BenchmarkStdDevMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkStdDev(b, s, wts) } func BenchmarkStdDevLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkStdDev(b, s, wts) } func BenchmarkStdDevHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkStdDev(b, s, wts) } @@ -194,46 +194,46 @@ func benchmarkMeanVariance(b *testing.B, s, wts []float64) { } func BenchmarkMeanVarianceSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkMeanVariance(b, s, nil) } func BenchmarkMeanVarianceMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkMeanVariance(b, s, nil) } func BenchmarkMeanVarianceLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkMeanVariance(b, s, nil) } func BenchmarkMeanVarianceHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkMeanVariance(b, s, nil) } func BenchmarkMeanVarianceSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkMeanVariance(b, s, wts) } func BenchmarkMeanVarianceMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkMeanVariance(b, s, wts) } func BenchmarkMeanVarianceLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkMeanVariance(b, s, wts) } func BenchmarkMeanVarianceHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkMeanVariance(b, s, wts) } @@ -245,46 +245,46 @@ func benchmarkMeanStdDev(b *testing.B, s, wts []float64) { } func BenchmarkMeanStdDevSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkMeanStdDev(b, s, nil) } func BenchmarkMeanStdDevMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkMeanStdDev(b, s, nil) } func BenchmarkMeanStdDevLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkMeanStdDev(b, s, nil) } func BenchmarkMeanStdDevHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkMeanStdDev(b, s, nil) } func BenchmarkMeanStdDevSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkMeanStdDev(b, s, wts) } func BenchmarkMeanStdDevMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkMeanStdDev(b, s, wts) } func BenchmarkMeanStdDevLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkMeanStdDev(b, s, wts) } func BenchmarkMeanStdDevHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkMeanStdDev(b, s, wts) } @@ -296,54 +296,54 @@ func benchmarkCovariance(b *testing.B, s1, s2, wts []float64) { } func BenchmarkCovarianceSmall(b *testing.B) { - s1 := RandomSlice(SMALL) - s2 := RandomSlice(SMALL) + s1 := RandomSlice(small) + s2 := RandomSlice(small) benchmarkCovariance(b, s1, s2, nil) } func BenchmarkCovarianceMedium(b *testing.B) { - s1 := RandomSlice(MEDIUM) - s2 := RandomSlice(MEDIUM) + s1 := RandomSlice(medium) + s2 := RandomSlice(medium) benchmarkCovariance(b, s1, s2, nil) } func BenchmarkCovarianceLarge(b *testing.B) { - s1 := RandomSlice(LARGE) - s2 := RandomSlice(LARGE) + s1 := RandomSlice(large) + s2 := RandomSlice(large) benchmarkCovariance(b, s1, s2, nil) } func BenchmarkCovarianceHuge(b *testing.B) { - s1 := RandomSlice(HUGE) - s2 := RandomSlice(HUGE) + s1 := RandomSlice(huge) + s2 := RandomSlice(huge) benchmarkCovariance(b, s1, s2, nil) } func BenchmarkCovarianceSmallWeighted(b *testing.B) { - s1 := RandomSlice(SMALL) - s2 := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s1 := RandomSlice(small) + s2 := RandomSlice(small) + wts := RandomSlice(small) benchmarkCovariance(b, s1, s2, wts) } func BenchmarkCovarianceMediumWeighted(b *testing.B) { - s1 := RandomSlice(MEDIUM) - s2 := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s1 := RandomSlice(medium) + s2 := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkCovariance(b, s1, s2, wts) } func BenchmarkCovarianceLargeWeighted(b *testing.B) { - s1 := RandomSlice(LARGE) - s2 := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s1 := RandomSlice(large) + s2 := RandomSlice(large) + wts := RandomSlice(large) benchmarkCovariance(b, s1, s2, wts) } func BenchmarkCovarianceHugeWeighted(b *testing.B) { - s1 := RandomSlice(HUGE) - s2 := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s1 := RandomSlice(huge) + s2 := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkCovariance(b, s1, s2, wts) } @@ -355,54 +355,54 @@ func benchmarkCorrelation(b *testing.B, s1, s2, wts []float64) { } func BenchmarkCorrelationSmall(b *testing.B) { - s1 := RandomSlice(SMALL) - s2 := RandomSlice(SMALL) + s1 := RandomSlice(small) + s2 := RandomSlice(small) benchmarkCorrelation(b, s1, s2, nil) } func BenchmarkCorrelationMedium(b *testing.B) { - s1 := RandomSlice(MEDIUM) - s2 := RandomSlice(MEDIUM) + s1 := RandomSlice(medium) + s2 := RandomSlice(medium) benchmarkCorrelation(b, s1, s2, nil) } func BenchmarkCorrelationLarge(b *testing.B) { - s1 := RandomSlice(LARGE) - s2 := RandomSlice(LARGE) + s1 := RandomSlice(large) + s2 := RandomSlice(large) benchmarkCorrelation(b, s1, s2, nil) } func BenchmarkCorrelationHuge(b *testing.B) { - s1 := RandomSlice(HUGE) - s2 := RandomSlice(HUGE) + s1 := RandomSlice(huge) + s2 := RandomSlice(huge) benchmarkCorrelation(b, s1, s2, nil) } func BenchmarkCorrelationSmallWeighted(b *testing.B) { - s1 := RandomSlice(SMALL) - s2 := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s1 := RandomSlice(small) + s2 := RandomSlice(small) + wts := RandomSlice(small) benchmarkCorrelation(b, s1, s2, wts) } func BenchmarkCorrelationMediumWeighted(b *testing.B) { - s1 := RandomSlice(MEDIUM) - s2 := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s1 := RandomSlice(medium) + s2 := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkCorrelation(b, s1, s2, wts) } func BenchmarkCorrelationLargeWeighted(b *testing.B) { - s1 := RandomSlice(LARGE) - s2 := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s1 := RandomSlice(large) + s2 := RandomSlice(large) + wts := RandomSlice(large) benchmarkCorrelation(b, s1, s2, wts) } func BenchmarkCorrelationHugeWeighted(b *testing.B) { - s1 := RandomSlice(HUGE) - s2 := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s1 := RandomSlice(huge) + s2 := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkCorrelation(b, s1, s2, wts) } @@ -414,46 +414,46 @@ func benchmarkSkew(b *testing.B, s, wts []float64) { } func BenchmarkSkewSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkSkew(b, s, nil) } func BenchmarkSkewMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkSkew(b, s, nil) } func BenchmarkSkewLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkSkew(b, s, nil) } func BenchmarkSkewHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkSkew(b, s, nil) } func BenchmarkSkewSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkSkew(b, s, wts) } func BenchmarkSkewMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkSkew(b, s, wts) } func BenchmarkSkewLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkSkew(b, s, wts) } func BenchmarkSkewHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkSkew(b, s, wts) } @@ -465,46 +465,46 @@ func benchmarkExKurtosis(b *testing.B, s, wts []float64) { } func BenchmarkExKurtosisSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkExKurtosis(b, s, nil) } func BenchmarkExKurtosisMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkExKurtosis(b, s, nil) } func BenchmarkExKurtosisLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkExKurtosis(b, s, nil) } func BenchmarkExKurtosisHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkExKurtosis(b, s, nil) } func BenchmarkExKurtosisSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkExKurtosis(b, s, wts) } func BenchmarkExKurtosisMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkExKurtosis(b, s, wts) } func BenchmarkExKurtosisLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkExKurtosis(b, s, wts) } func BenchmarkExKurtosisHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkExKurtosis(b, s, wts) } @@ -516,46 +516,46 @@ func benchmarkMoment(b *testing.B, n float64, s, wts []float64) { } func BenchmarkMomentSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkMoment(b, 5, s, nil) } func BenchmarkMomentMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkMoment(b, 5, s, nil) } func BenchmarkMomentLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkMoment(b, 5, s, nil) } func BenchmarkMomentHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkMoment(b, 5, s, nil) } func BenchmarkMomentSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkMoment(b, 5, s, wts) } func BenchmarkMomentMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkMoment(b, 5, s, wts) } func BenchmarkMomentLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkMoment(b, 5, s, wts) } func BenchmarkMomentHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkMoment(b, 5, s, wts) } @@ -567,45 +567,45 @@ func benchmarkMomentAbout(b *testing.B, n float64, s []float64, mean float64, wt } func BenchmarkMomentAboutSmall(b *testing.B) { - s := RandomSlice(SMALL) + s := RandomSlice(small) benchmarkMomentAbout(b, 5, s, 0, nil) } func BenchmarkMomentAboutMedium(b *testing.B) { - s := RandomSlice(MEDIUM) + s := RandomSlice(medium) benchmarkMomentAbout(b, 5, s, 0, nil) } func BenchmarkMomentAboutLarge(b *testing.B) { - s := RandomSlice(LARGE) + s := RandomSlice(large) benchmarkMomentAbout(b, 5, s, 0, nil) } func BenchmarkMomentAboutHuge(b *testing.B) { - s := RandomSlice(HUGE) + s := RandomSlice(huge) benchmarkMomentAbout(b, 5, s, 0, nil) } func BenchmarkMomentAboutSmallWeighted(b *testing.B) { - s := RandomSlice(SMALL) - wts := RandomSlice(SMALL) + s := RandomSlice(small) + wts := RandomSlice(small) benchmarkMomentAbout(b, 5, s, 0, wts) } func BenchmarkMomentAboutMediumWeighted(b *testing.B) { - s := RandomSlice(MEDIUM) - wts := RandomSlice(MEDIUM) + s := RandomSlice(medium) + wts := RandomSlice(medium) benchmarkMomentAbout(b, 5, s, 0, wts) } func BenchmarkMomentAboutLargeWeighted(b *testing.B) { - s := RandomSlice(LARGE) - wts := RandomSlice(LARGE) + s := RandomSlice(large) + wts := RandomSlice(large) benchmarkMomentAbout(b, 5, s, 0, wts) } func BenchmarkMomentAboutHugeWeighted(b *testing.B) { - s := RandomSlice(HUGE) - wts := RandomSlice(HUGE) + s := RandomSlice(huge) + wts := RandomSlice(huge) benchmarkMomentAbout(b, 5, s, 0, wts) }