Documentation ¶
Overview ¶
Package mymath provides math solutions for average number exclude smallest and largest.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CenteredAvg ¶
CenteredAvg computes the average of a list of numbers after removing the largest and smallest values.
Example ¶
fmt.Println(CenteredAvg([]int{1, 9, 10, 11, 12, 8, 500}))
Output: 10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.