Skip to content

Commit

Permalink
k parameter is now functional in closure.
Browse files Browse the repository at this point in the history
  • Loading branch information
ofgulban committed Apr 7, 2017
1 parent 1b701b7 commit eabad41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetrahydra/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def closure(data, k=1.0):
data_sum = np.sum(data, axis=1)
for i in range(data.shape[1]):
data[:, i] /= data_sum
return data
return data * k


def perturb(x, y):
Expand Down

0 comments on commit eabad41

Please sign in to comment.