dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit aea8d4767b7d982e7b61c98c9b00b5b9fe2b6f06
parent 38aff85c427eef2aed0b2e1c88433f72eb91f151
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 14 Jun 2023 17:02:17 -0700

cleanup

Diffstat:
Mpkg/web/handlers/interceptors/chess.go | 16----------------
1 file changed, 0 insertions(+), 16 deletions(-)

diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go @@ -994,22 +994,6 @@ func standardDeviation(arr []float64) float64 { return math.Sqrt(acc / nb) } -// https://www.scribbr.com/statistics/standard-deviation/ -/** - def mean[T](a: Iterable[T])(using n: Numeric[T]): Option[Double] = - a.nonEmpty option (n.toDouble(a.sum) / a.size) - - def standardDeviation(a: Iterable[Double]): Option[Double] = - mean(a) map { mean => - Math.sqrt: - a.foldLeft(0d) { (sum, x) => - sum + Math.pow(x - mean, 2) - } / a.size - } -*/ - -type WinPercent float64 - type Cp int func (c Cp) ceiled() Cp {