Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcpni committed Dec 19, 2024
1 parent f1e64b1 commit 7473afa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def derivative(self, input, output=None, context=None):
rate = self._get_current_parameter_value(RATE, context)
direction = 1 if final > initial else -1

return (direction * rate * (initial - final - direction) * np.log(direction * (final - initial + direction)) * \
return (direction * rate * (initial - final - direction) * np.log(direction * (final - initial + direction)) *
np.power((input / duration), (rate - 1))
/ (duration * np.exp(np.log(direction * (final - initial + direction)) *
np.power((input / duration), rate))))
Expand Down

0 comments on commit 7473afa

Please sign in to comment.