Skip to main content
Version: Next

mean

Description

get mean of a list

Parameters

NameTypeDescription
yArray<number>

Returns

    number

Installation

$ npm install @turf/moran-index

import { mean } from "@turf/moran-index";
const result = mean(...);
$ npm install @turf/turf

import * as turf from "@turf/turf";
const result = turf.mean(...);