Overload List
| # | Signature | Description |
|---|---|---|
| 1 | Double Min | Minimum value. |
| └ indexed: Double Min(Int32 Index, Int32 Len) | ||
| 2 | void Min(ref Double AMin, ref Int32 aIndex) | Calculate the minimum value of all calling object elements. |
| └ indexed: void Min(ref Double AMin, ref Int32 aIndex, Int32 Index, Int32 Len) | ||
| 3 | Int32 Min(ref TCplx AMin, Int32 Index, Int32 Len) | Same as the Dew.Math.TDenseMtxVec.Minc method. |
| 4 | void Min(ref Double AMin, Int32 Index, Int32 Len) | Calculate the minimum value from calling object elements [Index]..[Index+Len-1]. |
Overload 1: Double Min
Minimum value.
Returns: Double - The minimum value of all calling object elements. The result is a real value.
An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true.
Vector a = new Vector();
a.SetIt(new double[] { 1.0, 2.0, 3.0, 4.0 });
double result = a.Min();
if (Math.Abs(result - 1.0) > 1e-10)
throw new Exception("Vector.Min: expected 1.0, got " + result);
Vector a;
double b;
a.SetIt(false,new double[] {1,2,3,4});
b = a.Min; // b = 1
Indexed: Double Min(Int32 Index, Int32 Len)
Calculate the minimum value from calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | Len | Int32 | element count |
Returns: Double
The result is a real value. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true or array borders are overrun.
Overload 2: void Min(ref Double AMin, ref Int32 aIndex)
Calculate the minimum value of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMin | Double (ref) | output |
| 2 | aIndex | Int32 (ref) | output |
Result: stored in self (calling object)
The AMin parameter returns the minimum value. The aIndex parameter returns the index of minimum value. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true.
Indexed: void Min(ref Double AMin, ref Int32 aIndex, Int32 Index, Int32 Len)
Calculate the minimum value of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMin | Double (ref) | output |
| 2 | aIndex | Int32 (ref) | output |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object)
The AMax parameter returns the minimum value. The aIndex parameter returns the index of minimum value. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true or array borders are overrud/underrun.
Overload 3: Int32 Min(ref TCplx AMin, Int32 Index, Int32 Len)
Same as the Dew.Math.TDenseMtxVec.Minc method.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMin | TCplx (ref) | output |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Returns: Int32
Overload 4: void Min(ref Double AMin, Int32 Index, Int32 Len)
Calculate the minimum value from calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMin | Double (ref) | output |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Result: stored in self (calling object)
The result AMin is a real value. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true or array borders are overrun.