• tpapp's avatar
    generic MEAN and MEDIAN, new function DISPLACE-ARRAY · 485544d4
    tpapp authored
     Objects other than sequences have means and medians (eg probability
     distributions, arrays, sequences/arrays wrapped in another object, etc), so
     it makes sense to make these functions generic.
    
     DISPLACE-ARRAY is a small utility function that is used in the implementation
     of MEDIAN for arrays, but is also of general utility because it makes the
     creation of displaced arrays simpler, dispensing with the need to specify the
     element type, and offering sensible defaults when one wants vectors.
    
     Also added tests for all the new functions/methods.
    485544d4
Name
Last commit
Last update
doc Loading commit data...
.boring Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
LICENCE Loading commit data...
README Loading commit data...
alexandria-tests.asd Loading commit data...
alexandria.asd Loading commit data...
arrays.lisp Loading commit data...
binding.lisp Loading commit data...
conditions.lisp Loading commit data...
control-flow.lisp Loading commit data...
definitions.lisp Loading commit data...
features.lisp Loading commit data...
functions.lisp Loading commit data...
hash-tables.lisp Loading commit data...
io.lisp Loading commit data...
lists.lisp Loading commit data...
macros.lisp Loading commit data...
numbers.lisp Loading commit data...
package.lisp Loading commit data...
sequences.lisp Loading commit data...
strings.lisp Loading commit data...
symbols.lisp Loading commit data...
tests.lisp Loading commit data...
types.lisp Loading commit data...