Skip to content
Snippets Groups Projects
Commit 5d6656d2 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

correcting recent commit

parent b0ef48d4
No related branches found
No related tags found
No related merge requests found
// ************************************************************************** //
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file Core/Algorithms/IIntensityFunction.h
//! @brief Implements the classes IntensityFunctionLog, IntensityFunctionSqrt
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2015
//! @authors Scientific Computing Group at MLZ Garching
//! @authors C. Durniak, M. Ganeva, G. Pospelov, W. Van Herck, J. Wuttke
//
// ************************************************************************** //
#include <cmath>
#include "IIntensityFunction.h"
double IntensityFunctionLog::evaluate(double value) const
{
return value > 0 ? std::log(value) : 0;
}
double IntensityFunctionSqrt::evaluate(double value) const
{
return value > 0 ? std::sqrt(value) : 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment