Skip to content
Snippets Groups Projects
README.md 392 B
Newer Older
pink's avatar
pink committed
# pink-u17calc
pink's avatar
pink committed
IOC to calculate DCM/U17 relationship corrections

## Calculations
### variables
**E** : Energy\
**G** : Nominal Gap\
**M** : Better Gap\
**A** : Slope\
**B** : Offset\
**N** : New Energy

### equations
```math
pink's avatar
pink committed
A1 = (E2-E1)/(G2-G1)\\
pink's avatar
pink committed
B1 = E1-(A1*G1)\\
pink's avatar
pink committed
A2 = (E2-E1)/(M2-M1)\\
pink's avatar
pink committed
B2 = E1-(A2*M1)\\
N1 = (A2*G1)+B2\\
pink's avatar
pink committed
N2 = (A2*G2)+B2\\
pink's avatar
pink committed

pink's avatar
pink committed
IdSlope = A1/A2\\
pink's avatar
pink committed
IdOffset = (A1*G1)+B1-N1
pink's avatar
pink committed
```