20 std::vector<double> result(values.size());
23 for (
size_t i = 0; i < values.size(); i++) {
24 double normVal = values[i] / background;
25 result[i] = -std::log(normVal + std::sqrt(normVal * normVal + 1));
39 std::vector<double> result(values.size());
41 double bkg2 = background * background;
44 for (
size_t i = 0; i < values.size(); i++) {
45 result[i] = std::sqrt(values[i] * values[i] + bkg2);
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
std::vector< double > secondDerivative(const std::vector< double > &values, double background) override
Returns the second derivative at a given point.
std::vector< double > correctValues(const std::vector< double > &values, double newValue) override
Corrects the image.
std::vector< double > derivative(const std::vector< double > &values, double background) override
Returns the first derivative at a given point.