POTE tuning: Difference between revisions
Expansion (aka KE tuning, mention Kees optimality) |
→Computer Program for TE and POTE: refactor this code |
||
Line 35: | Line 35: | ||
def find_te (map, subgroup): | def find_te (map, subgroup): | ||
jip = np.log2 (subgroup) | |||
weighter = np.diag (1/np.log2 (subgroup)) | |||
map = map @ weighter | |||
jip = jip @ weighter | |||
te_gen = linalg.lstsq (np.transpose (map), jip)[0] | |||
te_gen = linalg.lstsq (np.transpose (map), | |||
te_map = te_gen @ map | te_map = te_gen @ map | ||
print (1200*te_gen) | print (1200*te_gen) |