Accepts a list or array of real numbers and calculates the difference between the minimum and maximum values.
spread(array|integer|float ...$args): float
args (array|integer|float) : A list or array of real numbers.
(float) : Returns the spread of all real numbers. (Also known as the range which is a reserved word in php.) : Returns 0 if the input is empty.
0
$fx->spread(5, 7, 3) = 4 $fx->spread([4, 8, 2]) = 6 $fx->spread(1.2, 5.6, 3.4) = 4.4
midrange
Home | CoreyFX | Mathematical
There was an error while loading. Please reload this page.