mymath

package
v0.0.0-...-190ce43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 1 Imported by: 0

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

func CenteredAvg(xi []int) float64

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL