Liking cljdoc? Tell your friends :D

com.brunobonacci.reservoir


frequency-densityclj

(frequency-density reservoir)
source

IPrintMethodcljprotocol

-printclj

(-print _ writer)

It outputs an EDN representation to the writer

It outputs an EDN representation to the writer
source

IReservoircljprotocol

add-itemclj

(add-item _ item)

Probably adds the item to the reservoir and returns a new reservoir which could contain this item.

Probably adds the item to the reservoir and returns a new
reservoir which could contain this item.

algorithmclj

(algorithm _)

Returns the algorithm used for the reservoir

Returns the algorithm used for the reservoir

capacityclj

(capacity _)

Returns the capacity of the reservoir

Returns the capacity of the reservoir

samplesclj

(samples _)

Returns the items from currently stored in the reservoir

Returns the items from currently stored in the reservoir

total-itemsclj

(total-items _)

Returns the total number of items

Returns the total number of items
source

merge-reservoirsclj

(merge-reservoirs & reservoirs)
source

reservoirclj

(reservoir capacity & {:keys [algorithm] :or {algorithm :algorithm-L}})
source

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

× close