You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stddev.go
    path of file: ./repos/pie/v2
    
    the code of the file until where you have to start completion: package pie

import (
	"golang.org/x/exp/constraints"
	"math"
)

// Stddev is the standard deviation
func Std
    
func Stddev[T constraints.Integer | constraints.Float](ss []T) float64 {
	if len(ss) == 0 {
		return 0.0
	}

	avg := Average(ss)

	var sd float64
	for i := range ss {
		sd += math.Pow(float64(ss[i])-avg, 2)
	}
	sd = math.Sqrt(sd / float64(len(ss)))

	return sd
}