|
MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
|
Curve Fit class. More...
#include <CurveFitVal.h>
Public Member Functions | |
| CurveFitVal (std::vector< double > xcoord, std::vector< double > ycoord, const std::size_t pdegree, const double loadFactor=0) | |
| double | calculate () const |
| double | calculate (double) const |
Public Attributes | |
| std::vector< double > | coeff |
Private Member Functions | |
| std::vector< double > | Fit_Coefficients () |
Private Attributes | |
| std::size_t | pdegree |
| std::vector< double > | xcoord |
| std::vector< double > | ycoord |
| double | loadFactor |
This contains the prototypes for the Curve Fit Value calculator.
Definition at line 19 of file CurveFitVal.h.
|
inline |
Constructor
| xcoord | vector of x coordinates as doubles |
| ycoord | vector of y coordinates as doubles |
| pdegree | int, degree of polynomial curve |
| loadFactor | double, load factor - unitless |
Definition at line 28 of file CurveFitVal.h.
| double CurveFitVal::calculate | ( | ) | const |
Calculates the curve fit value at required load factor
|
private |
Array to store the coefficients of the curve.
| std::vector<double> CurveFitVal::coeff |
Definition at line 47 of file CurveFitVal.h.
|
private |
load factor (here is the x coordinate, whose corresponding y coordinate is returned.
Definition at line 61 of file CurveFitVal.h.
|
private |
Degree of polynomial curve
Definition at line 53 of file CurveFitVal.h.
|
private |
x and y coordinates
Definition at line 57 of file CurveFitVal.h.
|
private |
Definition at line 57 of file CurveFitVal.h.