TVec.Min Method

Overload List

#SignatureDescription
1Double MinMinimum value.
└ indexed: Double Min(Int32 Index, Int32 Len)
2void 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)
3Int32 Min(ref TCplx AMin, Int32 Index, Int32 Len)Same as the Dew.Math.TDenseMtxVec.Minc method.
4void 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.

Remarks:

An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true.

Examples
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].

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

Returns: Double

Remarks:

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.

#NameTypeDescription
1AMinDouble (ref)output
2aIndexInt32 (ref)output

Result: stored in self (calling object)

Remarks:

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].

#NameTypeDescription
1AMinDouble (ref)output
2aIndexInt32 (ref)output
3IndexInt32start index
4LenInt32element count

Result: stored in self (calling object)

Remarks:

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.

#NameTypeDescription
1AMinTCplx (ref)output
2IndexInt32start index
3LenInt32element 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].

#NameTypeDescription
1AMinDouble (ref)output
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object)

Remarks:

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.