Permit negative P(r) in DeerLab #458
-
Dear DeerLab, I am emailing you to find out on how to remove the restriction on the P(r) to be positive that it can actually also take negative values into account for my T1-edited DEER. I remember in the old DeerAnalysis software I saw a comment that restrained it to be positive, but it seems that I am unable to find it in the current DeerLab version. I would appreciate if one could implement a comment that permits negative P(r). I dont try to get negative populations but rather a negative modulation of a population as a function of inversion pulse. thank you for your help, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Thomas, Many thanks for you question. I have converted it to a discussion so it remains open for any other interested users. Whilst DeerLab was primarliy designed to solve non-negative least squares (nnls) problems it can also handle other cases. The distance distribution This would be some code that would work well. There is no need to change anything in the Does your problem also permit |
Beta Was this translation helpful? Give feedback.
Hi Thomas,
Many thanks for you question. I have converted it to a discussion so it remains open for any other interested users.
Whilst DeerLab was primarliy designed to solve non-negative least squares (nnls) problems it can also handle other cases. The distance distribution
P
is actually just a linear parameter of the model with a lower and upper bound. By default in dipolar model we set its lower bound to be 0, but this can be changed to -inf.This would be some code that would work well. There is no need to change anything in the
fit
function.model.P.lb = np.ones(model.P.lb.shape) * -1* np.inf
Does your problem also permit
P
to be positive or is this an entierly negativeP
?There does…