src/Utils.h

changeset 453
fc0c10d79539
parent 449
00757c056ca6
child 498
c6f957fa7442
equal deleted inserted replaced
452:c4c5d02131be 453:fc0c10d79539
25 double brix_to_sg(double brix); 25 double brix_to_sg(double brix);
26 double sg_to_brix(double sg); 26 double sg_to_brix(double sg);
27 double brix_to_fg(double o_plato, double refracto); 27 double brix_to_fg(double o_plato, double refracto);
28 double calc_svg(double og, double fg); 28 double calc_svg(double og, double fg);
29 double estimate_sg(double sugars, double batch_size); 29 double estimate_sg(double sugars, double batch_size);
30
31 /**
32 * @brief Return log with custom base.
33 * @param y The input value.
34 * @param b The base to use.
35 * @return The log result.
36 */
37 double logbase(double y, int b);
30 38
31 /** 39 /**
32 * @brief Predict FG using recipe data. 40 * @brief Predict FG using recipe data.
33 * @param psugar Percentage sugar in the wort. 41 * @param psugar Percentage sugar in the wort.
34 * @param pcara Percentage cara/crystal malts in the wort. 42 * @param pcara Percentage cara/crystal malts in the wort.

mercurial