IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Represents a set of UncertainMeasurement{Double} measurements. More...
Public Member Functions | |
UncertainMeasurementSample () | |
Initializes a new, empty data set. More... | |
UncertainMeasurementSample (IEnumerable< UncertainMeasurement< double >> data) | |
Initializes a new data set with the specified data. More... | |
FitResult | FitToConstant () |
Fits the data to a constant value. More... | |
FitResult | FitToProportionality () |
Fit the data to a proportionality relationship. More... | |
FitResult | FitToLine () |
Fits the data to a line. More... | |
FitResult | FitToPolynomial (int order) |
Fits the data to a polynomial. More... | |
Represents a set of UncertainMeasurement{Double} measurements.
This class adds functionality to the UncertainMeasurementSample class which applies when the independent variable (X variable) is a single real number. This includes fitting to a constant, line, or polynomial.
|
inline |
Initializes a new, empty data set.
|
inline |
Initializes a new data set with the specified data.
data | An enumerator over the UncertainMeasurement{Double}s to place in the set. |
|
inline |
Fits the data to a constant value.
This method provides a simple way to
Referenced by Test.DataSetTest.FitDataToLineTest().
|
inline |
Fit the data to a proportionality relationship.
Referenced by Test.DataSetTest.FitDataToProportionalityTest().
|
inline |
Fits the data to a line.
Referenced by Test.DataSetTest.FitDataToLineChiSquaredTest(), Test.DataSetTest.FitDataToLineTest(), Test.DataSetTest.FitDataToLineUncertaintyTest(), Test.DataSetTest.FitDataToProportionalityTest(), and Test.DataSetTest.FitToFunctionLinearCompatibilityTest().
|
inline |
Fits the data to a polynomial.
order | The order of the polynomial to fit. |
InvalidOperationException | There are more polynomial coefficients than data points. |
References Meta.Numerics.MoreMath.Pow().
Referenced by Test.BugTests.Bug6162(), Test.DataSetTest.FitDataToLineTest(), Test.DataSetTest.FitDataToPolynomialChiSquaredTest(), Test.DataSetTest.FitDataToPolynomialTest(), Test.DataSetTest.FitDataToPolynomialUncertaintiesTest(), and Test.DataSetTest.FitToFunctionPolynomialCompatibilityTest().