Changeset 456f083 in tol
- Timestamp:
- Oct 23, 2011, 10:11:40 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 8c7c57b
- Parents:
- 4d26434
- File:
-
- 1 edited
-
tol/bmath/bprdist/prd.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/bmath/bprdist/prd.cpp
r4d26434 r456f083 792 792 if(useLeft_) 793 793 { 794 FAB_ = FB_-FA_;794 FAB_ = (FB_-FA_+1.E+4)-1.E+4; 795 795 } 796 796 else 797 797 { 798 FAB_ = F1A_-F1B_;798 FAB_ = (F1A_-F1B_+1.E+4)-1.E+4; 799 799 } 800 800 if(FAB_<0) … … 838 838 { 839 839 if(wrongParameter_ || prob.IsUnknown()) { return(BDat::Unknown()); } 840 if(A_ ==B_) { return(A_); }841 if( !FAB_)840 if(A_+1.0==B_+1.0) { return(A_); } 841 if(FAB_<1.E-8) 842 842 { 843 843 BDat C = NonTruncated().Average(); 844 if(A_ >C) { return(A_); }845 else if(B_ <C) { return(B_); }844 if(A_+1.0>C+1.0) { return(A_); } 845 else if(B_+1.0<C+1.0) { return(B_); } 846 846 { 847 847 BDat a = A_; … … 860 860 //-------------------------------------------------------------------- 861 861 { 862 if(A_ ==B_) { return(A_); }862 if(A_+1.0==B_+1.0) { return(A_); } 863 863 return(Inverse(BUniformDist::Random01())); 864 864 }
Note: See TracChangeset
for help on using the changeset viewer.
