Liking cljdoc? Tell your friends :D

bigml.histogram.core


average-targetclj

(average-target hist p)

Returns the average (or expected) target for the given point.

Returns the average (or expected) target for the given point.
sourceraw docstring

bin-countclj

(bin-count hist)

Returns the current number of bins.

Returns the current number of bins.
sourceraw docstring

binsclj

(bins hist)

Returns the bins contained in the histogram. A missing bin (mean is nil) is included if it's non-empty.

Returns the bins contained in the histogram. A missing bin (mean is
nil) is included if it's non-empty.
sourceraw docstring

boundsclj

(bounds hist)

Returns the bounds of the histogram, nil if the histogram is empty.

Returns the bounds of the histogram, nil if the histogram is empty.
sourceraw docstring

cdfclj

(cdf hist)

Returns the cumulative distribution function for the histogram.

Returns the cumulative distribution function for the histogram.
sourceraw docstring

clj-to-histclj

(clj-to-hist hist-map)

Transforms a Clojure map representing a histogram into a Histogram object.

Transforms a Clojure map representing a histogram into a Histogram
object.
sourceraw docstring

createclj

(create &
        {:keys [bins gap-weighted? categories group-types freeze reservoir]
         :or {bins 64 gap-weighted? false}})

Creates a histogram.

Optional parameters: :bins - Maximum bins to be used by the histogram (default 64) :gap-weighted? - Use gap weighting (true or false - default false) :categories - Collection of valid categories (improves performance) :group-types - A sequence of types (:numeric or :categorical) that describing a group target. :freeze - After this # of inserts, bin locations will 'freeze', improving the performance of future inserts. :reservoir - Selects the bin reservoir type (:array or :tree). Defaults to :array for <= 256 bins, otherwise :tree.

Creates a histogram.

Optional parameters:
  :bins - Maximum bins to be used by the histogram (default 64)
  :gap-weighted? - Use gap weighting (true or false - default false)
  :categories - Collection of valid categories (improves performance)
  :group-types - A sequence of types (:numeric or :categorical) that
                 describing a group target.
  :freeze - After this # of inserts, bin locations will 'freeze',
            improving the performance of future inserts.
  :reservoir - Selects the bin reservoir type (:array or :tree).
               Defaults to :array for <= 256 bins, otherwise :tree.
sourceraw docstring

densityclj

(density hist p)

Returns an estimate of the histogram's density at the given point.

Returns an estimate of the histogram's density at the given point.
sourceraw docstring

extended-densityclj

(extended-density hist p)

Returns an estimate of the histogram's density at the given point, along with the density of the targets.

Returns an estimate of the histogram's density at the given point,
along with the density of the targets.
sourceraw docstring

extended-sumclj

(extended-sum hist p)

Returns the approximate number of points occuring in the histogram equal or less than the given point, along with the sum of the targets.

Returns the approximate number of points occuring in the histogram
equal or less than the given point, along with the sum of the
targets.
sourceraw docstring

group-typesclj

(group-types hist)

Returns the group types of the histogram.

Returns the group types of the histogram.
sourceraw docstring

hist-to-cljclj

(hist-to-clj hist)

Transforms a Histogram object into a Clojure map representing the histogram.

Transforms a Histogram object into a Clojure map representing the
histogram.
sourceraw docstring

histogram?clj

(histogram? hist)

Returns true if the input is a histogram.

Returns true if the input is a histogram.
sourceraw docstring

insert!cljmultimethod

Inserts a point and an optional target into the histogram. The point must be a number and the target may be a number, string, keyword, or collection of the previous targets.

Inserts a point and an optional target into the histogram.  The
point must be a number and the target may be a number, string,
keyword, or collection of the previous targets.
sourceraw docstring

insert-bin!clj

(insert-bin! hist bin)

Inserts a bin into the histogram.

Inserts a bin into the histogram.
sourceraw docstring

insert-categorical!clj

(insert-categorical! hist p v)

Inserts a point with a categorical target into the histogram.

Inserts a point with a categorical target into the histogram.
sourceraw docstring

insert-group!clj

(insert-group! hist p v)

Inserts a point with a group target into the histogram.

Inserts a point with a group target into the histogram.
sourceraw docstring

insert-numeric!clj

(insert-numeric! hist p v)

Inserts a point with a categorical target into the histogram.

Inserts a point with a categorical target into the histogram.
sourceraw docstring

insert-simple!clj

(insert-simple! hist p)

Inserts a point into the histogram (no target).

Inserts a point into the histogram (no target).
sourceraw docstring

max-binsclj

(max-bins hist)

Returns the maximum allowed bins for the histogram.

Returns the maximum allowed bins for the histogram.
sourceraw docstring

maximumclj

(maximum hist)

Returns the maximum value inserted into the histogram.

Returns the maximum value inserted into the histogram.
sourceraw docstring

meanclj

(mean hist)

Returns the mean over the points inserted into the histogram.

Returns the mean over the points inserted into the histogram.
sourceraw docstring

medianclj

(median hist)

Returns a median for the points inserted into the histogram. This will be the true median whenever the histogram has less than the maximum number of bins, otherwise it will be an approximation.

Returns a median for the points inserted into the histogram. This
will be the true median whenever the histogram has less than the
maximum number of bins, otherwise it will be an approximation.
sourceraw docstring

merge!clj

(merge! hist1 hist2)

Merges the second histogram into the first.

Merges the second histogram into the first.
sourceraw docstring

minimumclj

(minimum hist)

Returns the minimum value inserted into the histogram.

Returns the minimum value inserted into the histogram.
sourceraw docstring

missing-binclj

(missing-bin hist)

Retrieves information about inserts with missing input points.

Retrieves information about inserts with missing input points.
sourceraw docstring

pdfclj

(pdf hist)

Returns the probability density function for the histogram.

Returns the probability density function for the histogram.
sourceraw docstring

percentilesclj

(percentiles hist & percentiles)

Returns a map of percentiles and their associated locations.

Returns a map of percentiles and their associated locations.
sourceraw docstring

sampleclj

(sample hist & [sample-size])

Returns a sequence of samples from the distribution approximated by the histogram.

Returns a sequence of samples from the distribution approximated by
the histogram.
sourceraw docstring

sumclj

(sum hist p)

Returns the approximate number of points occuring in the histogram equal or less than the given point.

Returns the approximate number of points occuring in the histogram
equal or less than the given point.
sourceraw docstring

target-typeclj

(target-type hist)

Returns the target-type of the histogram.

Returns the target-type of the histogram.
sourceraw docstring

total-countclj

(total-count hist)

Returns the count of the points summarized by the histogram.

Returns the count of the points summarized by the histogram.
sourceraw docstring

total-target-sumclj

(total-target-sum hist)

Returns the sum of the targets for each bin in the histogram.

Returns the sum of the targets for each bin in the histogram.
sourceraw docstring

uniformclj

(uniform hist max-bins)

Returns the split points that would separate the histogram into the supplied number of bins with equal population.

Returns the split points that would separate the histogram into
the supplied number of bins with equal population.
sourceraw docstring

varianceclj

(variance hist)

Returns an estimate of the variance for the histogram.

Returns an estimate of the variance for the histogram.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close