JekFk API
 
Jek
«
JekFk JavaScript Framework

Namespace Jek.stats

Defined in: JekFk.js.

Method Summary
mean(array) Returns the arithmetic mean of the entries in the input array
sum(array) Returns the sum of the entries in the input array
min(array) Returns the minimum element of the given array, according to the natural ordering of its elements.
max(array) Returns the maximum element of the given array, according to the natural ordering of its elements.
percentage(array, suffix[optional], decimalPositions[optional]) Convert values in an array to percentage
Method Detail
Jek.stats.mean(array) : Number
Returns the arithmetic mean of the entries in the input array
Parameters:
{Array} array
Returns:
{Number}
Jek.stats.sum(array) : Number
Returns the sum of the entries in the input array
Parameters:
{Array} array
Returns:
{Number}
Jek.stats.min(array) : Number
Returns the minimum element of the given array, according to the natural ordering of its elements.
Parameters:
{Array} array
Returns:
{Number}
Jek.stats.max(array) : Number
Returns the maximum element of the given array, according to the natural ordering of its elements.
Parameters:
{Array} array
Returns:
{Number}
Jek.stats.percentage(array, suffix[optional], decimalPositions[optional]) : Array
Convert values in an array to percentage
Parameters:
{Array} array
{String} suffix[optional]
{Number} decimalPositions[optional] default value = 0
Returns:
{Array}
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Oct 08 2011 15:54:12 GMT+0200 (CEST)