Created
February 29, 2016 22:18
-
-
Save saralilyb/0ef13bf42524eefe2fed to your computer and use it in GitHub Desktop.
Array Min and Max functions using NumericJS through mapreduce
This file contains hidden or 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
arrmax = numeric.mapreduce('if(xi > accum) accum=xi;','-Infinity'); | |
arrmin = numeric.mapreduce('if(xi < accum) accum=xi;','Infinity'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment