File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,8 @@ def expo_function(xs, *params):
5858 Output values for exponential function.
5959 """
6060
61- ys = np .zeros_like (xs )
62-
6361 offset , knee , exp = params
64-
65- ys = ys + offset - np .log10 (knee + xs ** exp )
62+ ys = offset - np .log10 (knee + xs ** exp )
6663
6764 return ys
6865
@@ -86,11 +83,8 @@ def expo_nk_function(xs, *params):
8683 Output values for exponential function, without a knee.
8784 """
8885
89- ys = np .zeros_like (xs )
90-
9186 offset , exp = params
92-
93- ys = ys + offset - np .log10 (xs ** exp )
87+ ys = offset - np .log10 (xs ** exp )
9488
9589 return ys
9690
@@ -111,11 +105,8 @@ def linear_function(xs, *params):
111105 Output values for linear function.
112106 """
113107
114- ys = np .zeros_like (xs )
115-
116108 offset , slope = params
117-
118- ys = ys + offset + (xs * slope )
109+ ys = offset + (xs * slope )
119110
120111 return ys
121112
@@ -136,11 +127,8 @@ def quadratic_function(xs, *params):
136127 Output values for quadratic function.
137128 """
138129
139- ys = np .zeros_like (xs )
140-
141130 offset , slope , curve = params
142-
143- ys = ys + offset + (xs * slope ) + ((xs ** 2 )* curve )
131+ ys = offset + (xs * slope ) + ((xs ** 2 )* curve )
144132
145133 return ys
146134
You can’t perform that action at this time.
0 commit comments