|
@@ -277,8 +277,12 @@ CertainTrust.prototype._singleOR = function(arg) {
|
|
|
|
|
|
resF = f1 + f2 - f1*f2;
|
|
resF = f1 + f2 - f1*f2;
|
|
|
|
|
|
- if (this._almostEqual(resF, 0))
|
|
|
|
- resC = c1 + c2 - c1*c2;
|
|
|
|
|
|
+ if (this._almostEqual(resF, 0)){
|
|
|
|
+ f1 = 0.99999;
|
|
|
|
+ f2 = 0.99999;
|
|
|
|
+ resF = f1 + f2 - f1*f2;
|
|
|
|
+ resC = c1 + c2 - c1*c2- (c1*f2*(1-c2)*(1-t1)+c2*f1*(1-c1)*(1-t2)) / resF;
|
|
|
|
+ }
|
|
else
|
|
else
|
|
resC = c1 + c2 - c1*c2 - (c1*f2*(1-c2)*(1-t1)+c2*f1*(1-c1)*(1-t2)) / resF;
|
|
resC = c1 + c2 - c1*c2 - (c1*f2*(1-c2)*(1-t1)+c2*f1*(1-c1)*(1-t2)) / resF;
|
|
|
|
|