The residuals should be with respect to the scaled (bias-corrected) value (E in Schoups and Vrugt, 2010, Eq. 1). They are currently computed with respect to the unscaled value (Y_h in Schoups and Vrugt, 2010, Eq. 2) using the __calcSimpleDeviation function.
A new function is needed, similar to the following:
def calcSimpleDeviation_bias(data, comparedata, mu_h):
standartChecksBeforeStart(data, comparedata)
d = np.array(data)
c = np.array(comparedata)
Adjust c for multiplicative bias parameter:
mu_t = np.exp(mu_h * c)
Et = c * mu_t
return d - Et
The residuals should be with respect to the scaled (bias-corrected) value (E in Schoups and Vrugt, 2010, Eq. 1). They are currently computed with respect to the unscaled value (Y_h in Schoups and Vrugt, 2010, Eq. 2) using the __calcSimpleDeviation function.
A new function is needed, similar to the following: def calcSimpleDeviation_bias(data, comparedata, mu_h): standartChecksBeforeStart(data, comparedata) d = np.array(data) c = np.array(comparedata)
Adjust c for multiplicative bias parameter:
The function is called in Line 432.