User Tools

Site Tools


howtos:toolcoding:scaling_normalizing_to_a_control_total

This is an old revision of the document!


Suppose you have a variable estimate[a,b,t] which you want scale to match targetControl_tot[t]. Two equivalent statements are:

target[a,b,t] = norm (estimate[a,b,t]; dim1=a, dim2=b) * targetControl_tot[t]

and

target[a,b,t] = targetControl_tot[t] / estimate_tot[t] * estimate[a,b,t]
<code>

where

<code>
estimate_tot[t] = sum (estimate[a,b,t]; dim1=a, dim2=b)
targetControl_tot[t] = sum (target[a,b,t]; dim1=a, dim2=b)
howtos/toolcoding/scaling_normalizing_to_a_control_total.1292605523.txt.gz · Last modified: 2010/12/17 17:05 by marcus.williams