Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

softplus.m 337 B

12345678910111213141516171819202122
  1. function y=softplus(beta,x)
  2. % y=softplus(beta,x)
  3. % a=beta(1);
  4. % x0=beta(2);
  5. % b=beta(3);
  6. a=beta(1);
  7. x0=beta(2);
  8. b=beta(3);
  9. y = a.*(log(1 + exp((x - x0).*b)));
  10. y/a = log(1 + exp(x-x0)*b)
  11. exp(y/a) = 1 + exp(x-x0)*b
  12. exp(y/a) - 1 = exp(x-x0)*b
  13. b*(exp(y/a) - 1 = exp(x-x0)
  14. log(b*exp(y) - a - 1) = x - x0
  15. y = log(b*(exp(x) - a)) + x0;