24CompactFunction::CompactFunction() : center (0.0 ),
33#ifndef N2P2_NO_ASYM_POLY
51 throw invalid_argument(
"ERROR: Width <= 0.\n");
67 throw invalid_argument(
"ERROR: Left >= Right.\n");
double width
Width of compact function.
void setCenterWidth(double center, double width)
Set center and width.
double center
Center of compact function.
bool getAsymmetric() const
Check if asymmetry is enabled in core function.
void setLeftRight(double left, double right)
Set left and right boundary.
double scale
Inverse width.
CoreFunction core
Core function to be used on either side of compact function.
double right
Right boundary of compact function.
double left
Left boundary of compact function.
void setAsymmetric(bool asymmetric)
Set asymmetric property in core function.
void setAsymmetric(bool asymmetric)
Set asymmetric property.
void setType(Type const type)
Set function type.
bool getAsymmetric() const
Getter for asymmetric.