Returns the sum of two NumericalVariable objects.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Operator + ( _ variable1 As NumericalVariable, _ variable2 As NumericalVariable _ ) As NumericalVariable |
| C# |
|---|
public static NumericalVariable operator + ( NumericalVariable variable1, NumericalVariable variable2 ) |
| C++ |
|---|
public: static NumericalVariable^ operator + ( NumericalVariable^ variable1, NumericalVariable^ variable2 ) |
Parameters
- variable1 (Extreme.Statistics.NumericalVariable)
- A NumericalVariable.
- variable2 (Extreme.Statistics.NumericalVariable)
- A NumericalVariable.
Return Value
A new NumericalVariable that is the result of adding every value of variable1 to every corresponding value of variable2.
Remarks
The two variables must have the same number of observations.
Exceptions
| Exception | Condition |
|---|---|
| DimensionMismatchException | The number of observations in variable1 does not equal the number of observations in variable2. |
| ArgumentNullException | variable1 is nullNothingnullptr. -or-variable2 is nullNothingnullptr. |