Convenience functions and refs to access recipe style data
Convenience functions and refs to access recipe style data
(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.
(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
(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
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close