@@ -123,7 +123,7 @@ tape( 'the function evaluates the logpdf for `x` given positive `mu`', opts, fun
123
123
t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', mu: ' + mu [ i ] + ', c: ' + c [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
124
124
} else {
125
125
delta = abs ( y - expected [ i ] ) ;
126
- tol = 5 .0 * EPS * abs ( expected [ i ] ) ;
126
+ tol = 3 .0 * EPS * abs ( expected [ i ] ) ;
127
127
t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. mu: ' + mu [ i ] + '. c: ' + c [ i ] + '. y: ' + y + '. E: ' + expected [ i ] + '. Δ: ' + delta + '. tol: ' + tol + '.' ) ;
128
128
}
129
129
}
@@ -152,7 +152,7 @@ tape( 'the function evaluates the logpdf for `x` given negative `mu`', opts, fun
152
152
t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', mu: ' + mu [ i ] + ', c: ' + c [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
153
153
} else {
154
154
delta = abs ( y - expected [ i ] ) ;
155
- tol = 5 .0 * EPS * abs ( expected [ i ] ) ;
155
+ tol = 3 .0 * EPS * abs ( expected [ i ] ) ;
156
156
t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. mu: ' + mu [ i ] + '. c: ' + c [ i ] + '. y: ' + y + '. E: ' + expected [ i ] + '. Δ: ' + delta + '. tol: ' + tol + '.' ) ;
157
157
}
158
158
}
@@ -181,7 +181,7 @@ tape( 'the function evaluates the logpdf for `x` given large variance ( = large
181
181
t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', mu: ' + mu [ i ] + ', c: ' + c [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
182
182
} else {
183
183
delta = abs ( y - expected [ i ] ) ;
184
- tol = 5 .0 * EPS * abs ( expected [ i ] ) ;
184
+ tol = 2 .0 * EPS * abs ( expected [ i ] ) ;
185
185
t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. mu: ' + mu [ i ] + '. c: ' + c [ i ] + '. y: ' + y + '. E: ' + expected [ i ] + '. Δ: ' + delta + '. tol: ' + tol + '.' ) ;
186
186
}
187
187
}
0 commit comments