We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0fb8ec + e09d979 commit 628479eCopy full SHA for 628479e
netZooM/otter/otter.m
@@ -20,6 +20,7 @@
20
%
21
% Outputs:
22
% W : Predicted TF-gene complete regulatory network as an adjacency matrix of size (t,g).
23
+
24
%global parameters
25
if nargin<4
26
lambda = 0.0035;
@@ -40,9 +41,9 @@
40
41
%initial transformation
42
C = C/trace(C);
43
P = P+2.2;
-P = P/trace(P);
44
W = P*W;
45
W = W/trace(W*W');
46
+P = P/trace(P);
47
48
[t, g] = size(W);
49
m = zeros(t, g);
tests/testOtter.m
@@ -44,8 +44,8 @@ function testOtterSimple()
W_test = csvread(filename);
% Compare the outputs
- tolMat =1e-6;
- deltaMat=max(max(abs(W-W_test)));
+ tolMat =1e-10;
+ deltaMat=max(max(abs(W_test - W)));
assertTrue( deltaMat < tolMat );
50
51
end
0 commit comments