Liking cljdoc? Tell your friends :D

brew-bot.styles

Convenience functions and refs to access recipe style data

Convenience functions and refs to access recipe style data
raw docstring

best-matchclj/s

(best-match gravity ibu srm abv)

Given a common-beer-format recipe's gravity, ibu, srm, and abv, return the closest BJCP style that matches those data points.

Given a common-beer-format recipe's `gravity`, `ibu`, `srm`, and `abv`,
return the closest BJCP style that matches those data points.
sourceraw docstring

global-abv-rangeclj/s

source

global-ibu-rangeclj/s

source

global-original-gravity-rangeclj/s

source

global-srm-rangeclj/s

source

score-abv-adherenceclj/s

source

score-adherence-to-rangeclj/s

(score-adherence-to-range global-range local-range data-point)

Determine on a normalized scale how well data-point fits in local-range w.r.t a global-range. Higher values indicate better fits. Assumes global-range and local-range to be order tuples

Determine on a  normalized scale how well `data-point` fits in `local-range` w.r.t a `global-range`.
Higher values indicate better fits.
Assumes global-range and local-range to be order tuples
sourceraw docstring

score-against-stylesclj/s

(score-against-styles gravity ibu srm abv)

Given a common-beer-format recipe's gravity, ibu, srm, and abv, return a map from BJCP styles to the normalized value of the recipe's conformance to that style

Given a common-beer-format recipe's `gravity`, `ibu`, `srm`, and `abv`,
return a map from BJCP styles to the normalized value of the recipe's conformance to that style
sourceraw docstring

score-ibu-adherenceclj/s

source

score-original-gravity-adherenceclj/s

source

score-range-deltaclj/s

(score-range-delta scale conforming-point data-point)

Determine on a normalized scale how close data-point was to conforming-point given the scale Shorter distances are scored higher, and currently this is determined quadratically

Determine on a normalized scale how close `data-point` was to `conforming-point` given the `scale`
Shorter distances are scored higher, and currently this is determined quadratically
sourceraw docstring

score-srm-adherenceclj/s

source

score-style-adherenceclj/s

(score-style-adherence gravity ibu srm abv style)

Given a common-beer-format recipe's gravity, ibu, srm, and abv, return a normalized score on how well the recipe adheres to BJCP guideleines for that style

Given a common-beer-format recipe's `gravity`, `ibu`, `srm`, and `abv`,
return a normalized score on how well the recipe adheres to BJCP guideleines for that style
sourceraw docstring

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

× close