|
SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Defines the class of Chebyshev polynomials. More...
#include <Basis.h>

Public Member Functions | |
| Chebyshev (unsigned int polyOrd, double boundLow, double boundUp, unsigned int nbins) | |
| Constructor. More... | |
| double | ChangeVariable (double x) |
| Transforms variable from absolute value to [-1,1] between boundaries. More... | |
| double | Evaluate (double x, int n) |
| Calculates the output of the basis function. More... | |
| double | EvalGrad (double x, int n) |
| Calculates the gradient of the basis function. More... | |
| double | Weight (double x) |
| Calculates the weight of the basis function. More... | |
| double | GetNorm (int) |
| Gets the norm of the basis function. More... | |
Public Member Functions inherited from SSAGES::BasisFunction | |
| BasisFunction (unsigned int polyOrd, unsigned int nbins, bool isFinite, bool zeroOrder, double boundLow, double boundUp) | |
| Constructor. More... | |
| unsigned int | GetOrder () |
| Gets the order of the current polynomial. More... | |
| unsigned int | GetBins () |
| Gets the number of bins for the discretization. More... | |
| bool | GetZeroOrder () |
| Gets the flag for constant-order polynomials. More... | |
| double | GetLower () |
| Gets the lower bound on the CV. More... | |
| double | GetUpper () |
| Gets the upper bound on the CV. More... | |
| double | GetRange () |
| Gets the magnitude of the range of bounds. More... | |
| virtual | ~BasisFunction () |
| Destructor. | |
Static Public Member Functions | |
| static Chebyshev * | Build (const Json::Value &json, const std::string &path, unsigned int nbins) |
| Build BasisFunction from JSON value. More... | |
Static Public Member Functions inherited from SSAGES::BasisFunction | |
| static BasisFunction * | Build (const Json::Value &json, const std::string &path, unsigned int nbins) |
| Build BasisFunction from JSON value. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SSAGES::BasisFunction | |
| unsigned int | polyOrd_ |
| Order of the polynomial. | |
| unsigned int | nbins_ |
| Number of bins. | |
| bool | isFinite_ |
| Flag for finite-range polynomials. | |
| bool | zeroOrder_ |
| Flag for constant-order polynomials. | |
| double | boundLow_ |
| Lower bound on CV. | |
| double | boundUp_ |
| Upper bound on CV. | |
|
inline |
Constructor.
| polyOrd | Order of Chebyshev polynomial. |
| boundLow | Lower bounds of restraint springs. |
| boundUp | Upper bounds of restraint springs. |
| nbins | Number of bins. |
Constructs an instance of the Chebyshev function class.
Definition at line 207 of file Basis.h.
Referenced by Build().

|
static |
Build BasisFunction from JSON value.
Build the Chebyshev polynomial
Definition at line 22 of file Basis.cpp.
References Chebyshev(), Json::Requirement::GetErrors(), Json::Requirement::HasErrors(), Json::ObjectRequirement::Parse(), and Json::ObjectRequirement::Validate().
Referenced by SSAGES::BasisFunction::Build().


|
inline |
Transforms variable from absolute value to [-1,1] between boundaries.
| x | Variable to transform. |
Definition at line 218 of file Basis.h.
References SSAGES::BasisFunction::boundLow_, and SSAGES::BasisFunction::boundUp_.
Referenced by EvalGrad(), Evaluate(), and Weight().

|
inlinevirtual |
Calculates the gradient of the basis function.
| val | Input value for function. |
| order | Order of the polynomial. |
Reimplemented from SSAGES::BasisFunction.
Definition at line 231 of file Basis.h.
References ChangeVariable(), and Evaluate().

|
inlinevirtual |
Calculates the output of the basis function.
| val | Input value for function. |
| order | Order of the polynomial. |
Reimplemented from SSAGES::BasisFunction.
Definition at line 223 of file Basis.h.
References ChangeVariable().
Referenced by EvalGrad().


|
inlinevirtual |
Gets the norm of the basis function.
| order | Order of the polynomial. |
Reimplemented from SSAGES::BasisFunction.
|
inlinevirtual |
Calculates the weight of the basis function.
| val | Input value for function. |
Reimplemented from SSAGES::BasisFunction.
Definition at line 239 of file Basis.h.
References ChangeVariable().
