Liking cljdoc? Tell your friends :D

var-techml-neanderthal.risk

VaR/drawdown primitives over a return or portfolio-value series.

VaR/drawdown primitives over a return or portfolio-value series.
raw docstring

maxdrawdownclj

(maxdrawdown xs)

Single pass tracking running peak and running min-drawdown - ~10x faster than (apply min (map - xs (reductions max xs))), which walks xs three times through lazy seqs instead of once.

Single pass tracking running peak and running min-drawdown - ~10x faster
than (apply min (map - xs (reductions max xs))), which walks xs three times
through lazy seqs instead of once.
sourceraw docstring

nd-portfolio-value->maxdrawdownclj

(nd-portfolio-value->maxdrawdown portfolio-value kdates)
source

nd-returns->varclj

(nd-returns->var rtn kdates)
source

quantileclj

(quantile p vs)
(quantile p c svs mn mx)
source

quantile-simpleclj

(quantile-simple q sorted-xs)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close