TSparseMtx.Normalize Method

Overload List

#SignatureDescription
1function Normalize(const SubOffset, DivFactor: TCplx): TMtxVec; overload;Normalize by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
└ indexed: function Normalize(const SubOffset, DivFactor: TCplx; Index,Len: integer): TMtxVec; overload;
2function Normalize(const SubOffset: TCplx; const DivFactor: double): TMtxVec; overload;Normalize object by subtracting a complex constant SubOffset from elements and dividing the result by real constant DivFactor.
└ indexed: function Normalize(const SubOffset: TCplx; const DivFactor: double; Index,Len: integer): TMtxVec; overload;
3function Normalize(const Vec: TMtxVec; const SubOffset, DivFactor: Double): TMtxVec; overload;Normalize object.
└ indexed: function Normalize(const Vec: TMtxVec; const SubOffset, DivFactor: Double; VecIndex,Index,Len: integer): TMtxVec; overload;
4function Normalize(const Vec: TMtxVec; const SubOffset: TCplx; const DivFactor: Double): TMtxVec; overload;Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor.
└ indexed: function Normalize(const Vec: TMtxVec; const SubOffset: TCplx; const DivFactor: Double; VecIndex,Index,Len: integer): TMtxVec; overload;
5function Normalize(const Vec: TMtxVec; const SubOffset, DivFactor: TCplx): TMtxVec; overload;Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
└ indexed: function Normalize(const Vec: TMtxVec; const SubOffset, DivFactor: TCplx; VecIndex,Index,Len: integer): TMtxVec; overload;
6function Normalize(const SubOffset, DivFactor: double): TMtxVec; overload;Normalize data.
└ indexed: function Normalize(const SubOffset, DivFactor: double; Index,Len: integer): TMtxVec; overload;

Overload 1: function Normalize(const SubOffset, DivFactor: TCplx): TMtxVec; overload;

Normalize by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.

#NameTypeDescription
1SubOffsetTCplxscalar
2DivFactorTCplxscalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Size and TMtxVec.Complex property of calling object are adjusted automatically. An exception is raised, if object is complex.

Indexed: function Normalize(const SubOffset, DivFactor: TCplx; Index,Len: integer): TMtxVec; overload;

Normalize objects complex values [Index]..[Index+Len-1] by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.

#NameTypeDescription
1SubOffsetTCplxscalar
2DivFactorTCplxscalar
3Indexintegerstart index
4Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised, if object is not complex or array borders are overrun/underrun.

Overload 2: function Normalize(const SubOffset: TCplx; const DivFactor: double): TMtxVec; overload;

Normalize object by subtracting a complex constant SubOffset from elements and dividing the result by real constant DivFactor.

#NameTypeDescription
1SubOffsetTCplxscalar
2DivFactordoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised, if object is not complex.

Indexed: function Normalize(const SubOffset: TCplx; const DivFactor: double; Index,Len: integer): TMtxVec; overload;

Normalize objects complex values [Index]..[Index+Len-1] by subtracting a complex constant SubOffset from elements and dividing the result by real constant DivFactor.

#NameTypeDescription
1SubOffsetTCplxscalar
2DivFactordoublescalar
3Indexintegerstart index
4Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling vector complex values [Index]..[Index+Len-1]. An exception is raised, if the calling object is not complex or array borders are overrun/underrun.

Overload 3: function Normalize(const Vec: TMtxVec; const SubOffset, DivFactor: Double): TMtxVec; overload;

Normalize object.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2SubOffsetDoublescalar
3DivFactorDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Normalizes Vec object by subtracting a constant Offset from Vec elements and dividing the result by constant Factor:

V[k]=Vec[k]−OffsetFactor\text{V}[k]=\frac{\text{Vec}[k]-\text{Offset}}{\text{Factor}}

The results are stored in calling object. Use this method if you want to do a multiply and add (scale and offset) operations in a single method call.

Indexed: function Normalize(const Vec: TMtxVec; const SubOffset, DivFactor: Double; VecIndex,Index,Len: integer): TMtxVec; overload;

Normalize Vec object values [VecIndex]..[VecIndex+Len-1] by subtracting a real constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2SubOffsetDoublescalar
3DivFactorDoublescalar
4VecIndexinteger
5Indexintegerstart index
6Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling vector values [Index]..[Index+Len-1]. An exception is raised if Vec or calling object is complex or array borders are overrun/underrun.

Overload 4: function Normalize(const Vec: TMtxVec; const SubOffset: TCplx; const DivFactor: Double): TMtxVec; overload;

Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2SubOffsetTCplxscalar
3DivFactorDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Size and TMtxVec.Complex property of calling object are adjusted automatically. An exception is raised if Vec is complex.

Indexed: function Normalize(const Vec: TMtxVec; const SubOffset: TCplx; const DivFactor: Double; VecIndex,Index,Len: integer): TMtxVec; overload;

Normalize Vec object complex values [VecIndex]..[VecIndex+Len-1] by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2SubOffsetTCplxscalar
3DivFactorDoublescalar
4VecIndexinteger
5Indexintegerstart index
6Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling vector complex values [Index]..[Index+Len-1]. An exception is raised if Vec or calling object is not complex or array borders are overrun/underrun.

Overload 5: function Normalize(const Vec: TMtxVec; const SubOffset, DivFactor: TCplx): TMtxVec; overload;

Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2SubOffsetTCplxscalar
3DivFactorTCplxscalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Size and TMtxVec.Complex property of calling object are adjusted automatically. An exception is raised if Vec is complex.

Indexed: function Normalize(const Vec: TMtxVec; const SubOffset, DivFactor: TCplx; VecIndex,Index,Len: integer): TMtxVec; overload;

Normalize Vec object complex values [VecIndex]..[VecIndex+Len-1] by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2SubOffsetTCplxscalar
3DivFactorTCplxscalar
4VecIndexinteger
5Indexintegerstart index
6Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling vector complex values [Index]..[Index+Len-1]. An exception is raised if Vec or calling object is not complex or array borders are overrun/underrun.

Overload 6: function Normalize(const SubOffset, DivFactor: double): TMtxVec; overload;

Normalize data.

#NameTypeDescription
1SubOffsetdoublescalar
2DivFactordoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Normalizes values in the calling object by subtracting a constant Offset from Elements and dividing the result by constant Factor:

V[k]=Vec[k]−OffsetFactor\text{V}[k]=\frac{\text{Vec}[k]-\text{Offset}}{\text{Factor}}

The results are stored in calling object. Use this method if you want to do a multiply and add (scale and offset) operations in a single method call.

Examples
var a: Vector;
begin
    a := [1,2,3,4];
    a.Normalize(2,3);
end;

Indexed: function Normalize(const SubOffset, DivFactor: double; Index,Len: integer): TMtxVec; overload;

Normalize object values [Index]..[Index+Len-1] by subtracting a real constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.

#NameTypeDescription
1SubOffsetdoublescalar
2DivFactordoublescalar
3Indexintegerstart index
4Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling vector values [Index]..[Index+Len-1]. An exception is raised, if Vec or calling object is complex or array borders are overrun/underrun.