mymath

package module
v0.0.0-...-518a5e2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Unlicense Imports: 1 Imported by: 1

Documentation

Overview

mymath package is used to facilitate CenteredAvg function. we are using this for level 13 exercises.

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(slice))
Output:

49.285714285714285

Types

This section is empty.

Jump to

Keyboard shortcuts

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