|  | Bounded | 
 Inheritance Hierarchy
Inheritance Hierarchy Syntax
Syntax[SerializableAttribute] public class BoundedMultiVariableFunctionFitter<M> : MultiVariableFunctionFitter<M> where M : new(), IBoundedNonlinearLeastSqMinimizer
[Missing <typeparam name="M"/> documentation for "T:CenterSpace.NMath.Core.BoundedMultiVariableFunctionFitter`1"]
The BoundedMultiVariableFunctionFitterM type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | BoundedMultiVariableFunctionFitterM(Boolean) | For internal use only. | 
|  | BoundedMultiVariableFunctionFitterM(DoubleParameterizedFunctional) | Constructs a BoundedMultiVariableFunctionFitter instance with the given generalized function. | 
|  | BoundedMultiVariableFunctionFitterM(DoubleParameterizedFunctional, M) | Constructs a BoundedMultiVariableFunctionFitter instance with the given generalized function and minimizer. | 
|  | BoundedMultiVariableFunctionFitterM(FuncDoubleVector, DoubleVector, Double, Int32) | Constructs a BoundedMultiVariableFunctionFitter instance for the given parameterized delegate. | 
|  | BoundedMultiVariableFunctionFitterM(FuncDoubleVector, DoubleVector, Double, ActionDoubleVector, DoubleVector, DoubleVector, Int32) | Constructs a BoundedMultiVariableFunctionFitter instance for the given parameterized delegate. | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | Function | Gets and sets the parameterized function. (Inherited from MultiVariableFunctionFitterM) | 
|  | Minimizer | Gets and sets the function minimizer. (Inherited from MultiVariableFunctionFitterM) | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | Clone | Creates a deep copy of this MultiVariableFunctionFitter. (Inherited from MultiVariableFunctionFitterM) | 
|  | Fit(DoubleMatrix, DoubleVector, DoubleVector) | Fits a function to the specified points. (Inherited from MultiVariableFunctionFitterM) | 
|  | Fit(DoubleMatrix, DoubleVector, DoubleVector, DoubleVector, DoubleVector) | Fits a function to the specified points where the resulting function parameters
            satisfy the given inequality constriants C# parameterLowerBounds[i] < parameters[i] < parameterUpperBounds[i] | 
|  | ResidualVector | Computes the residual vector from the given data points and solution. (Inherited from MultiVariableFunctionFitterM) | 
 Fields
Fields| Name | Description | |
|---|---|---|
|  | f_ | The parameterized function. (Inherited from MultiVariableFunctionFitterM) | 
|  | minimizer_ | The minimizer. (Inherited from MultiVariableFunctionFitterM) | 
 Remarks
Remarks
            F(p, x) = p[0]x[0]x[1]^2 + p[1]sin(x[0]) + p[2]x[1]^3;
            
            to a set of 10 data points, beginning at point (1, 1, 1) in the parameter space. and satisfying the parameter
            constraints
            0 < p[0] < 100
            0 < p[1] < 50
            0 < p[2] < 75
            DoubleMatrix x = new DoubleMatrix(10, 2); x[Slice.All, 0] = new DoubleVector("3.6 7.7 9.3 4.1 8.6 2.8 1.3 7.9 10.0 5.4"); x[Slice.All, 1] = new DoubleVector("16.5 150.6 263.1 24.7 208.5 9.9 2.7 163.9 325.0 54.3"); DoubleVector upperBounds = new DoubleVector("100, 50, 75"); DoubleVector lowerBounds = new DoubleVector("0 0 0"); DoubleVector yValues = new DoubleVector("95.09 23.11 60.63 48.59 89.12 76.97 45.68 1.84 82.17 44.47"); DoubleVector initialParameters = new DoubleVector("10 10 10"); Func<DoubleVector, DoubleVector, double> f = delegate(DoubleVector p, DoubleVector xdata) { return Math.Pow(p[0] * xdata[0] * xdata[1], 2.0) + p[1] * Math.Sin(xdata[0]) + Math.Pow(p[2] * xdata[1], 3.0); }; MultiVariableFunctionFitter<TrustRegionMinimizer> fitter = new MultiVariableFunctionFitter<TrustRegionMinimizer>(f); DoubleVector solution = fitter.Fit(x, yValues, initialParameters, lowerBounds, upperBounds);
 See Also
See Also