Lines Matching refs:fDF
681 double ScInterpreter::GetTDist(double T, double fDF) in GetTDist() argument
684 return 0.5 * GetBetaDist(fDF/(fDF+T*T), fDF/2.0, 0.5); in GetTDist()
720 double ScInterpreter::GetChiDist(double fX, double fDF) in GetChiDist() argument
726 return GetUpRegIGamma( fDF/2.0, fX/2.0); in GetChiDist()
733 double ScInterpreter::GetChiSqDistCDF(double fX, double fDF) in GetChiSqDistCDF() argument
739 return GetLowRegIGamma( fDF/2.0, fX/2.0); in GetChiSqDistCDF()
742 double ScInterpreter::GetChiSqDistPDF(double fX, double fDF) in GetChiSqDistPDF() argument
749 if (fDF*fX > 1391000.0) in GetChiSqDistPDF()
752 fValue = exp((0.5*fDF - 1) * log(fX*0.5) - 0.5 * fX - log(2.0) - GetLogGamma(0.5*fDF)); in GetChiSqDistPDF()
756 if (fmod(fDF,2.0)<0.5) in GetChiSqDistPDF()
767 while ( fCount < fDF) in GetChiSqDistPDF()
791 double fDF = ::rtl::math::approxFloor(GetDouble()); in ScChiSqDist() local
792 if (fDF < 1.0) in ScChiSqDist()
798 PushDouble(GetChiSqDistCDF(fX,fDF)); in ScChiSqDist()
800 PushDouble(GetChiSqDistPDF(fX,fDF)); in ScChiSqDist()
1576 double fDF = ::rtl::math::approxFloor(GetDouble()); in ScTDist() local
1578 if (fDF < 1.0 || T < 0.0 || (fFlag != 1.0 && fFlag != 2.0) ) in ScTDist()
1583 double R = GetTDist(T, fDF); in ScTDist()
1612 double fDF = ::rtl::math::approxFloor(GetDouble()); in ScChiDist() local
1614 if (fDF < 1.0) // x<=0 returns 1, see ODFF 6.17.10 in ScChiDist()
1619 fResult = GetChiDist( fChi, fDF); in ScChiDist()
2114 double fp, fDF; member in ScTDistFunction
2118 rInt(rI), fp(fpVal), fDF(fDFVal) {} in ScTDistFunction()
2120 double GetValue( double x ) const { return fp - 2 * rInt.GetTDist(x, fDF); } in GetValue()
2128 double fDF = ::rtl::math::approxFloor(GetDouble()); in ScTInv() local
2130 if (fDF < 1.0 || fDF >= 1.0E5 || fP <= 0.0 || fP > 1.0 ) in ScTInv()
2137 ScTDistFunction aFunc( *this, fP, fDF ); in ScTInv()
2138 double fVal = lcl_IterateInverse( aFunc, fDF*0.5, fDF, bConvError ); in ScTInv()
2181 double fp, fDF; member in ScChiDistFunction
2185 rInt(rI), fp(fpVal), fDF(fDFVal) {} in ScChiDistFunction()
2187 double GetValue( double x ) const { return fp - rInt.GetChiDist(x, fDF); } in GetValue()
2195 double fDF = ::rtl::math::approxFloor(GetDouble()); in ScChiInv() local
2197 if (fDF < 1.0 || fP <= 0.0 || fP > 1.0 ) in ScChiInv()
2204 ScChiDistFunction aFunc( *this, fP, fDF ); in ScChiInv()
2205 double fVal = lcl_IterateInverse( aFunc, fDF*0.5, fDF, bConvError ); in ScChiInv()
2215 double fp, fDF; member in ScChiSqDistFunction
2219 rInt(rI), fp(fpVal), fDF(fDFVal) {} in ScChiSqDistFunction()
2221 double GetValue( double x ) const { return fp - rInt.GetChiSqDistCDF(x, fDF); } in GetValue()
2229 double fDF = ::rtl::math::approxFloor(GetDouble()); in ScChiSqInv() local
2231 if (fDF < 1.0 || fP < 0.0 || fP >= 1.0 ) in ScChiSqInv()
2238 ScChiSqDistFunction aFunc( *this, fP, fDF ); in ScChiSqInv()
2239 double fVal = lcl_IterateInverse( aFunc, fDF*0.5, fDF, bConvError ); in ScChiSqInv()
2649 double fDF; in ScChiTest() local
2652 fDF = (double)(nC1*nR1 - 1); in ScChiTest()
2653 if (fDF == 0.0) in ScChiTest()
2660 fDF = (double)(nC1-1)*(double)(nR1-1); in ScChiTest()
2661 PushDouble(GetChiDist(fChi, fDF)); in ScChiTest()