Created
May 25, 2014 19:27
-
-
Save bmoregeo/ef8a3e18aa090459b435 to your computer and use it in GitHub Desktop.
php get breaks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getBreaks($max, $min, $q){ | |
$quant = ($max - $min) / $q; | |
for ($x = 0; $x <= $q; $x++){ | |
$breakValue[$x] = $min+($quant*$x); | |
} | |
return $breakValue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment