Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec Normalize(TCplx SubOffset, TCplx DivFactor) | Normalize by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor. |
| └ indexed: TMtxVec Normalize(TCplx SubOffset, TCplx DivFactor, Int32 Index, Int32 Len) | ||
| 2 | TMtxVec Normalize(TCplx SubOffset, Double DivFactor) | Normalize object by subtracting a complex constant SubOffset from elements and dividing the result by real constant DivFactor. |
| └ indexed: TMtxVec Normalize(TCplx SubOffset, Double DivFactor, Int32 Index, Int32 Len) | ||
| 3 | TMtxVec Normalize(TMtxVec Vec, TCplx SubOffset, TCplx DivFactor) | Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor. |
| └ indexed: TMtxVec Normalize(TMtxVec Vec, TCplx SubOffset, TCplx DivFactor, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 4 | TMtxVec Normalize(TMtxVec Vec, TCplx SubOffset, Double DivFactor) | Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor. |
| └ indexed: TMtxVec Normalize(TMtxVec Vec, TCplx SubOffset, Double DivFactor, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 5 | TMtxVec Normalize(TMtxVec Vec, Double SubOffset, Double DivFactor) | Normalize object. |
| └ indexed: TMtxVec Normalize(TMtxVec Vec, Double SubOffset, Double DivFactor, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 6 | TMtxVec Normalize(Double SubOffset, Double DivFactor) | Normalize data. |
| └ indexed: TMtxVec Normalize(Double SubOffset, Double DivFactor, Int32 Index, Int32 Len) |
Overload 1: TMtxVec Normalize(TCplx SubOffset, TCplx DivFactor)
Normalize by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
Result: stored in self (calling object), returns self for chaining
Size and Dew.Math.Vector.Complex property of calling object are adjusted automatically. An exception is raised, if object is complex.
Indexed: TMtxVec Normalize(TCplx SubOffset, TCplx DivFactor, Int32 Index, Int32 Len)
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SubOffset | TCplx | scalar |
| 2 | DivFactor | TCplx | scalar |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised, if object is not complex or array borders are overrun/underrun.
Overload 2: TMtxVec Normalize(TCplx SubOffset, Double DivFactor)
Normalize object by subtracting a complex constant SubOffset from elements and dividing the result by real constant DivFactor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SubOffset | TCplx | scalar |
| 2 | DivFactor | Double | scalar |
Result: stored in self (calling object), returns self for chaining
An exception is raised, if object is not complex.
Indexed: TMtxVec Normalize(TCplx SubOffset, Double DivFactor, Int32 Index, Int32 Len)
Normalize objects complex values [Index]..[Index+Len-1] by subtracting a complex constant SubOffset from elements and dividing the result by real constant DivFactor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SubOffset | TCplx | scalar |
| 2 | DivFactor | Double | scalar |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
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: TMtxVec Normalize(TMtxVec Vec, TCplx SubOffset, TCplx DivFactor)
Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
Result: stored in self (calling object), returns self for chaining
Size and Dew.Math.Vector.Complex property of calling object are adjusted automatically. An exception is raised if Vec is complex.
Indexed: TMtxVec Normalize(TMtxVec Vec, TCplx SubOffset, TCplx DivFactor, Int32 VecIndex, Int32 Index, Int32 Len)
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | SubOffset | TCplx | scalar |
| 3 | DivFactor | TCplx | scalar |
| 4 | VecIndex | Int32 | |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
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 4: TMtxVec Normalize(TMtxVec Vec, TCplx SubOffset, Double DivFactor)
Normalize Vec object by subtracting a complex constant SubOffset from Vec elements and dividing the result by real constant DivFactor.
Result: stored in self (calling object), returns self for chaining
Size and Dew.Math.Vector.Complex property of calling object are adjusted automatically. An exception is raised if Vec is complex.
Indexed: TMtxVec Normalize(TMtxVec Vec, TCplx SubOffset, Double DivFactor, Int32 VecIndex, Int32 Index, Int32 Len)
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | SubOffset | TCplx | scalar |
| 3 | DivFactor | Double | scalar |
| 4 | VecIndex | Int32 | |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
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: TMtxVec Normalize(TMtxVec Vec, Double SubOffset, Double DivFactor)
Normalize object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | SubOffset | Double | scalar |
| 3 | DivFactor | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Normalizes Vec object by subtracting a constant Offset from Vec elements and dividing the result by constant 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.
Vector a;
Vector b;
a.SetIt(false,new double[] {1,2,3,4});
b.Normalize(a,2,3);
Indexed: TMtxVec Normalize(TMtxVec Vec, Double SubOffset, Double DivFactor, Int32 VecIndex, Int32 Index, Int32 Len)
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | SubOffset | Double | scalar |
| 3 | DivFactor | Double | scalar |
| 4 | VecIndex | Int32 | |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
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 6: TMtxVec Normalize(Double SubOffset, Double DivFactor)
Normalize data.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SubOffset | Double | scalar |
| 2 | DivFactor | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Normalizes values in the calling object by subtracting a constant Offset from Elements and dividing the result by constant 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.
using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples
{
void Example()
{
TVec a;
MtxVec.CreateIt(out a);
try
{
a.SetIt(false,new double[] {1,2,3,4}); // a = [1,2,3,4]
a.Normalize(2,3);
}
finally
{
MtxVec.FreeIt(ref a);
}
}
}
Indexed: TMtxVec Normalize(Double SubOffset, Double DivFactor, Int32 Index, Int32 Len)
Normalize object values [Index]..[Index+Len-1] by subtracting a real constant SubOffset from Vec elements and dividing the result by complex constant DivFactor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SubOffset | Double | scalar |
| 2 | DivFactor | Double | scalar |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
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.