IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Represents a set of measurements. More...
Public Member Functions | |
UncertainMeasurementSample () | |
Initializes a new, empty data set. More... | |
void | Add (UncertainMeasurement< T > datum) |
Adds a new data point to the set. More... | |
void | Add (T x, double y, double dy) |
Adds a new data point to the set. More... | |
void | Add (IEnumerable< UncertainMeasurement< T >> data) |
Adds a series of data points to the set. More... | |
bool | Remove (UncertainMeasurement< T > datum) |
Removes a data point from the set. More... | |
bool | Contains (UncertainMeasurement< T > datum) |
Determines whether the set contains the given data point. More... | |
void | Clear () |
Removes all data points from the set. More... | |
FitResult | FitToLinearFunction (Func< T, double >[] functions) |
Fits the data to a linear combination of fit functions. More... | |
FitResult | FitToFunction (Func< double[], T, double > function, double[] start) |
Fits the data to an arbitrary parameterized function. More... | |
IEnumerator < UncertainMeasurement< T > > | GetEnumerator () |
Gets an enumerator over the measurements. More... | |
Properties | |
int | Count [get] |
Gets the size of the data set. More... | |
bool ICollection < UncertainMeasurement< T > >. | IsReadOnly [get] |
Private Member Functions | |
void ICollection < UncertainMeasurement< T > >. | CopyTo (UncertainMeasurement< T >[] array, int offset) |
System.Collections.IEnumerator System.Collections.IEnumerable. | GetEnumerator () |
Private Attributes | |
List< UncertainMeasurement< T > > | data = new List<UncertainMeasurement<T>>() |
Represents a set of measurements.
T | The type of independent variable associated with each measurement. |
Initializes a new, empty data set.
|
inline |
Adds a new data point to the set.
datum | The data point. |
|
inline |
Adds a new data point to the set.
x | The value of the ordinate (independent variable). |
y | The value of the abcissa (dependent variable). |
dy | The uncertainty of the abcissa (dependent variable). |
|
inline |
Adds a series of data points to the set.
data | The data points. |
|
inline |
Removes a data point from the set.
datum | The data point to remove. |
|
inline |
Determines whether the set contains the given data point.
datum | The data point. |
|
inline |
Removes all data points from the set.
|
inline |
Fits the data to a linear combination of fit functions.
functions | The component functions. |
ArgumentNullException | functions is null. |
InsufficientDataException | There are fewer data points than fit parameters. |
|
inline |
Fits the data to an arbitrary parameterized function.
function | The fit function. |
start | An initial guess at the parameters. |
ArgumentNullException | function or start are null. |
InsufficientDataException | There are fewer data points than fit parameters. |
References Meta.Numerics.Matrices.SymmetricMatrix.CholeskyDecomposition(), Meta.Numerics.Analysis.FunctionMath.FindMinimum(), and Meta.Numerics.Matrices.CholeskyDecomposition.Inverse().
|
inline |
Gets an enumerator over the measurements.
|
inlineprivate |
|
inlineprivate |
|
private |
|
get |
Gets the size of the data set.
|
getprivate |