Example: Calculation of L1 Distance between points x = (3,4) and y = (2,3).
Function call: polynom_abs(matrix_1).
matrix_1:
x1 |
x2 |
1 2 |
1 3 |
The matrix_1 is in file matrix_1.txt in PSG Matrix format (see, PSG Matrix in General (Text) Format).
L1 Distance is calculated at point_1:
component_name |
value |
x1 x2 |
3 4 |
The point point_1 is in file point_1.txt (see, PSG Point).
To calculate L1 Distance at point_1 run problem in file problem_L1_Distance.txt (see, Calculate Problem):
calculate
point: point_1
value:
polynom_abs(matrix_1)
Value of polynom_abs(matrix_1) at point_1 equals 5
Files problem_L1_Distance.txt, matrix_1.txt, and point_1.txt are in folder .\Aorda\PSG\Examples\Functions\L1_Distance_test