BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Fit::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...
 
std::string name () const
 
double startValue () const
 
AttLimits limits () const
 
double value () const
 
void setValue (double value)
 
double step () const
 
double error () const
 
void setError (double value)
 

Detailed Description

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

Definition at line 27 of file Parameter.h.

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.

Definition at line 33 of file Parameter.cpp.


The documentation for this class was generated from the following files: