Skip to main content
Module

x/simplestatistics/index.js>coefficientOfVariation

simple statistics for node & browser javascript
Go to Latest
function coefficientOfVariation
import { coefficientOfVariation } from "https://deno.land/x/simplestatistics@v7.7.5/index.js";

Thecoefficient of variation_ is the ratio of the standard deviation to the mean. .._coefficient of variation: https://en.wikipedia.org/wiki/Coefficient_of_variation

Examples

coefficientOfVariation([1, 2, 3, 4]).toFixed(3); // => 0.516 coefficientOfVariation([1, 2, 3, 4, 5]).toFixed(3); // => 0.527 coefficientOfVariation([-1, 0, 1, 2, 3, 4]).toFixed(3); // => 1.247

Parameters

x

input