Functions - tave8/scaler GitHub Wiki
Here you find the main functions and algorithms.
| Input & Parameters | Function name | With what? | Order matters? | Output |
|---|---|---|---|---|
| lst, include_same | self_combine | itself | no | ? |
| lst, include_same | self_permute | itself | yes | ? |
| lst1, lst2 | other_combine | other list | no | ? |
| lst1, lst2 | other_permute | other list | yes | ? |
include_same (True | default: False)
Do you want to combine or permute value x with itself? XX, YY, ZZ etc.
Examples.
fn self_combine(lst)
is <lst> a pandas Series or python list?
<lst> contains A, B, C, D, E, F
--> result:
AA AB AC AD AE AF
BB BC BD BE BF
CC CD CE CF
DD DE DF
EE EF
FF
fn self_permute(lst)
is <lst> a pandas Series or python list?
<lst> contains A, B, C, D, E, F
--> result:
AA AB AC AD AE AF
BA BB BC BD BE BF
CA CB CC CD CE CF
DA DB DC DD DE DF
EA EB EC ED EE EF
FA FB FC FD FE FF
fn other_combine(lst1, lst2)
is <lst1> and <lst2> pandas Series or python list?
<lst1> contains A, B, C
<lst2> contains D, E, F
--> result:
AD AE AF
BD BE BF
CD CE CF
fn other_permute(lst1, lst2)
is <lst1> and <lst2> pandas Series or python list?
<lst1> contains A, B, C
<lst2> contains D, E, F
--> result:
AD AE AF
BD BE BF
CD CE CF
DA DB DC
EA EB EC
FA FB FC
Different blood components have different scales. You want to convert the value in one scale in a 0-1 scale.
Scaling is also useful for interpreting the significance of a certain numerical result. How significant is it to have 0.6 of Pearson Correlation?
| Input & Parameters | Input type | Function name |
|---|---|---|
| x, x_range, y_range, round_to | number, number, number, integer | scale |
y_range ((minimum y, maximum y) | default: (0,1))
What target range do you want to convert x in?
Define regex