github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/physicscompress2/physics/stats.go (about)

     1  package physics
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/montanaflynn/stats"
     7  )
     8  
     9  func summarize(vs []float64) {
    10  	fmt.Printf("%d %.3f ±%.3f\n", len(vs), stats.Mean(vs), stats.StdDevS(vs))
    11  }