Package COM.INFORMATIMAGO.COMMON-LISP.CESARUM.HISTOGRAM


This package provides functions to deal with histograms.


License:

    AGPL3

    Copyright Pascal J. Bourguignon 2013 - 2013

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.
    If not, see <http://www.gnu.org/licenses/>

(histogram data bin-count &key key min-value max-value)
function
If MIN-VALUE or MAX-VALUE is not given, then they're computed from the data.
RETURN: An histogram of BIN-COUNT bins, built from the DATA, mapped by KEY.

HISTOGRAM-BINS

HISTOGRAM-BINS-AND-LABELS

HISTOGRAM-COMPUTE-BIN

HISTOGRAM-ENTER

HISTOGRAM-MAX-VALUE

HISTOGRAM-MIN-VALUE

(make-histogram bin-count min-value max-value)
function

     +-------+-------+-------+
     |       |       |       | count=3
     +-------+-------+-------+
     |                       |
    min                     max