JCL Help:ArithmeticMean

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Calculates the arithmetic mean of an array of floats.


Pascal

 function ArithmeticMean(const X: TDynFloatArray): Float;


Parameters

Parameters Description
const X: TDynFloatArray The array of floating point values for which to calculate the arithmetic mean.


Return Value

The arithmetic mean of the array of floats. If the array is empty the return value is 0.0.


Description

ArithmeticMean calculates the arithmetic mean of an array of floats. The arithmetic mean is defined as the sum of the elements divided by the number of elements.


About

Unit

JclStatistics


Donator

ESB Consultancy


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page