mymath

package
v0.0.0-...-c470439 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

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
package main

import (
	"fmt"

	"github.com/preslavmihaylov/learn-golang/ninja-level-13/ex03/mymath"
)

func main() {
	fmt.Println(mymath.CenteredAvg([]int{1, 2, 3, 4, 5, 6}))
}
Output:

3.5

Types

This section is empty.

Jump to

Keyboard shortcuts

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