Matrix::Normalize Method

Overload List

#SignatureDescription
1TMtxVec *Normalize(const double SubOffset, const double DivFactor) const;Normalize data.
2TMtxVec *Normalize(const TCplx &SubOffset, const TCplx &DivFactor) const;Normalize by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
3TMtxVec *Normalize(const TCplx &SubOffset, const TCplx &DivFactor, int Index, int Len) const;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.
4TMtxVec *Normalize(const double SubOffset, const double DivFactor, int Index, int Len) const;Normalize object values [Index]..[Index+Len-1] by subtracting a real constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
5TMtxVec *Normalize(const TCplx &SubOffset, const double DivFactor) const;Normalize object by subtracting a complex constant SubOffset from elements and dividing the result by real constant DivFactor.
6TMtxVec *Normalize(const TCplx &SubOffset, const double DivFactor, int Index, int Len) const;Normalize objects complex values [Index]..[Index+Len-1] by subtracting a complex constant SubOffset from elements and dividing the result by real constant DivFactor.
7TMtxVec *Normalize(TMtxVec *Vec, double SubOffset, double DivFactor) const;Normalize object.
8TMtxVec *Normalize(TMtxVec *Vec, TCplx SubOffset, TCplx DivFactor) const;Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
9TMtxVec *Normalize(TMtxVec *Vec, TCplx SubOffset, TCplx DivFactor, int VecIndex, int Index, int Len) const;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.
10TMtxVec *Normalize(TMtxVec *Vec, double SubOffset, double DivFactor, int VecIndex, int Index, int Len) const;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.
11TMtxVec *Normalize(TMtxVec *Vec, TCplx SubOffset, double DivFactor) const;Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor.
12TMtxVec *Normalize(TMtxVec *Vec, TCplx SubOffset, double DivFactor, int VecIndex, int Index, int Len) const;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.

Overload 1: TMtxVec *Normalize(const double SubOffset, const double DivFactor) const;

Normalize data.

#NameTypeDescription
1SubOffsetconst double
2DivFactorconst double
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.

See Also: TDenseMtxVec::Offset, Matrix::Scale
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtxVec *Normalize(const TCplx &SubOffset, const TCplx &DivFactor) const;

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

#NameTypeDescription
1SubOffsetconst TCplx &
2DivFactorconst TCplx &
Remarks:

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

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TMtxVec *Normalize(const TCplx &SubOffset, const TCplx &DivFactor, int Index, int Len) const;

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
1SubOffsetconst TCplx &
2DivFactorconst TCplx &
3Indexint
4Lenint
Remarks:

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

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: TMtxVec *Normalize(const double SubOffset, const double DivFactor, int Index, int Len) const;

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
1SubOffsetconst double
2DivFactorconst double
3Indexint
4Lenint
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.

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 5: TMtxVec *Normalize(const TCplx &SubOffset, const double DivFactor) const;

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

#NameTypeDescription
1SubOffsetconst TCplx &
2DivFactorconst double
Remarks:

An exception is raised, if object is not complex.

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 6: TMtxVec *Normalize(const TCplx &SubOffset, const double DivFactor, int Index, int Len) const;

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
1SubOffsetconst TCplx &
2DivFactorconst double
3Indexint
4Lenint
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.

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 7: TMtxVec *Normalize(TMtxVec *Vec, double SubOffset, double DivFactor) const;

Normalize object.

#NameTypeDescription
1VecTMtxVec *
2SubOffsetdouble
3DivFactordouble
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.

Note
Use this method if you want to do a multiply and add (scale and offset) operations in a single method call.

See Also: Matrix::Offset, Matrix::Scale
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 8: TMtxVec *Normalize(TMtxVec *Vec, TCplx SubOffset, TCplx DivFactor) const;

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

#NameTypeDescription
1VecTMtxVec *
2SubOffsetTCplx
3DivFactorTCplx
Remarks:

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

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 9: TMtxVec *Normalize(TMtxVec *Vec, TCplx SubOffset, TCplx DivFactor, int VecIndex, int Index, int Len) const;

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
1VecTMtxVec *
2SubOffsetTCplx
3DivFactorTCplx
4VecIndexint
5Indexint
6Lenint
Remarks:

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

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 10: TMtxVec *Normalize(TMtxVec *Vec, double SubOffset, double DivFactor, int VecIndex, int Index, int Len) const;

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
1VecTMtxVec *
2SubOffsetdouble
3DivFactordouble
4VecIndexint
5Indexint
6Lenint
Remarks:

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

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 11: TMtxVec *Normalize(TMtxVec *Vec, TCplx SubOffset, double DivFactor) const;

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

#NameTypeDescription
1VecTMtxVec *
2SubOffsetTCplx
3DivFactordouble
Remarks:

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

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 12: TMtxVec *Normalize(TMtxVec *Vec, TCplx SubOffset, double DivFactor, int VecIndex, int Index, int Len) const;

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
1VecTMtxVec *
2SubOffsetTCplx
3DivFactordouble
4VecIndexint
5Indexint
6Lenint
Remarks:

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

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler