BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
mumufit::Parameter Class Reference

A fittable parameter with value, error, step, and limits. More...

Public Member Functions

 Parameter (const std::string &name, double value, const AttLimits &limits=AttLimits::limitless(), double step=0.0)
 Fit parameter constructor. More...
 
double error () const
 
AttLimits limits () const
 
std::string name () const
 
void setError (double value)
 
void setValue (double value)
 
double startValue () const
 
double step () const
 
double value () const
 

Detailed Description

A fittable parameter with value, error, step, and limits.

Constructor & Destructor Documentation

◆ Parameter()

Parameter::Parameter ( const std::string &  name,
double  value,
const AttLimits limits = AttLimits::limitless(),
double  step = 0.0 
)

Fit parameter constructor.

Parameters
nameunique name of fit parameters
valuestarting value of fit parameter
limitsfit parameter limits
stepinitial step of fit parameter during the minimization, will be calculated automatically, if zero.