Example: Function call: ksm_avg(matrix_kx, vector_yi, vector_qi)
matrix_kx:
s1 |
s2 |
s3 |
s4 |
s5 |
s6 |
s7 |
s8 |
scenario_benchmark |
2 |
-1 |
1 |
15 |
12 |
34 |
17 |
94 |
2 |
The matrix_kx is in file matrix_kx.txt in PSG Matrix format (see, PSG Matrix in General (Text) Format).
vector_yi (see PSG Vector in General (Text) Format):
id |
value |
1 2 3 4 5 6 |
-2 0 1 5 7 11 |
vector_qi (see PSG Vector in General (Text) Format):
id |
value |
1 2 3 4 5 6 |
0.1 0.2 0.15 0.15 0.3 0.1 |
Average Kolmogorov-Smirnov Distance between Two Distributions is calculated at point_mn:
component_name |
value |
s1 s2 s3 s4 s5 s6 s7 s8 |
0.125 0.125 0.125 0.125 0.125 0.125 0.125 0.125 |
The point point_mn is in file point_mn.txt (see, PSG Point).
To calculate ksm_avg at point_1 run problem in file problem_ksm_avg.txt (see, Calculate Problem):
calculate
point: point_mn
value:
ksm_avg(matrix_kx, vector_yi, vector_qi)
Value of ksm_avg(matrix_kx, vector_yi, vector_qi) at point_1 equals 0.186458
Files problem_ksm_avg.txt, matrix_kx.txt, vector_yi.txt, vector_qi.txt and point_1.txt are in folder .\Aorda\PSG\Examples\Functions\ksm_avg_test.