Vector.Range Method

Overload List

#SignatureDescription
1function Range: double; overload;Calculate the range from all calling object elements.
└ indexed: function Range(Index, Len: integer): double; overload;
2procedure Range(out ARange: double; Index, Len: integer); overload;Calculate the range from calling object elements [Index]..[Index+Len-1]. The result ARange is a real value.

Overload 1: function Range: double; overload;

Calculate the range from all calling object elements.

Returns: double

Indexed: function Range(Index, Len: integer): double; overload;

Returns real range value from calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1Indexintegerstart index
2Lenintegerelement count

Returns: double

Remarks:

An exception is raised if calling object Vector.Complex property is true or array borders are overrun.

Overload 2: procedure Range(out ARange: double; Index, Len: integer); overload;

Calculate the range from calling object elements [Index]..[Index+Len-1]. The result ARange is a real value.

#NameTypeDescription
1ARangedoublescalar
2Indexintegerstart index
3Lenintegerelement count

Result: stored in self (calling object)

Remarks:

An exception is raised if calling object Vector.Complex property is true or array borders are overrun/underrun.