24 double const aperture,
25 double const aperture_cutoff)
27 if (aperture >= aperture0)
33 if (aperture > aperture_cutoff)
35 double const penalty = std::log(aperture / aperture0);
36 return 1 + penalty * penalty +
37 2 * penalty / aperture * (aperture - aperture0);
42 double const penalty = std::log(aperture_cutoff / aperture0);
43 return 1 + penalty * penalty +
44 2 * penalty / aperture_cutoff *
45 (2 * aperture - aperture_cutoff - aperture0);