/third_party/boost/boost/math/special_functions/detail/ |
D | t_distribution_inv.hpp | 77 T inverse_students_t_tail_series(T df, T v, const Policy& pol) in inverse_students_t_tail_series() argument 82 T w = boost::math::tgamma_delta_ratio(df / 2, constants::half<T>(), pol) in inverse_students_t_tail_series() 83 * sqrt(df * constants::pi<T>()) * v; in inverse_students_t_tail_series() 85 T np2 = df + 2; in inverse_students_t_tail_series() 86 T np4 = df + 4; in inverse_students_t_tail_series() 87 T np6 = df + 6; in inverse_students_t_tail_series() 94 d[1] = -(df + 1) / (2 * np2); in inverse_students_t_tail_series() 95 np2 *= (df + 2); in inverse_students_t_tail_series() 96 d[2] = -df * (df + 1) * (df + 3) / (8 * np2 * np4); in inverse_students_t_tail_series() 97 np2 *= df + 2; in inverse_students_t_tail_series() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | decNumberLocal.h | 303 #define DFBYTE(df, off) ((df)->bytes[DECBYTES-1-(off)]) argument 304 #define DFWORD(df, off) ((df)->words[DECWORDS-1-(off)]) argument 307 #define DFBYTE(df, off) ((df)->bytes[off]) argument 308 #define DFWORD(df, off) ((df)->words[off]) argument 313 #define DFISSIGNED(df) (DFWORD(df, 0)&0x80000000) argument 314 #define DFISSPECIAL(df) ((DFWORD(df, 0)&0x78000000)==0x78000000) argument 315 #define DFISINF(df) ((DFWORD(df, 0)&0x7c000000)==0x78000000) argument 316 #define DFISNAN(df) ((DFWORD(df, 0)&0x7c000000)==0x7c000000) argument 317 #define DFISQNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7c000000) argument 318 #define DFISSNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7e000000) argument [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | decNumberLocal.h | 305 #define DFBYTE(df, off) ((df)->bytes[DECBYTES-1-(off)]) argument 306 #define DFWORD(df, off) ((df)->words[DECWORDS-1-(off)]) argument 309 #define DFBYTE(df, off) ((df)->bytes[off]) argument 310 #define DFWORD(df, off) ((df)->words[off]) argument 315 #define DFISSIGNED(df) (DFWORD(df, 0)&0x80000000) argument 316 #define DFISSPECIAL(df) ((DFWORD(df, 0)&0x78000000)==0x78000000) argument 317 #define DFISINF(df) ((DFWORD(df, 0)&0x7c000000)==0x78000000) argument 318 #define DFISNAN(df) ((DFWORD(df, 0)&0x7c000000)==0x7c000000) argument 319 #define DFISQNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7c000000) argument 320 #define DFISSNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7e000000) argument [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | decNumberLocal.h | 305 #define DFBYTE(df, off) ((df)->bytes[DECBYTES-1-(off)]) argument 306 #define DFWORD(df, off) ((df)->words[DECWORDS-1-(off)]) argument 309 #define DFBYTE(df, off) ((df)->bytes[off]) argument 310 #define DFWORD(df, off) ((df)->words[off]) argument 315 #define DFISSIGNED(df) (DFWORD(df, 0)&0x80000000) argument 316 #define DFISSPECIAL(df) ((DFWORD(df, 0)&0x78000000)==0x78000000) argument 317 #define DFISINF(df) ((DFWORD(df, 0)&0x7c000000)==0x78000000) argument 318 #define DFISNAN(df) ((DFWORD(df, 0)&0x7c000000)==0x7c000000) argument 319 #define DFISQNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7c000000) argument 320 #define DFISSNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7e000000) argument [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | decNumberLocal.h | 305 #define DFBYTE(df, off) ((df)->bytes[DECBYTES-1-(off)]) argument 306 #define DFWORD(df, off) ((df)->words[DECWORDS-1-(off)]) argument 309 #define DFBYTE(df, off) ((df)->bytes[off]) argument 310 #define DFWORD(df, off) ((df)->words[off]) argument 315 #define DFISSIGNED(df) (DFWORD(df, 0)&0x80000000) argument 316 #define DFISSPECIAL(df) ((DFWORD(df, 0)&0x78000000)==0x78000000) argument 317 #define DFISINF(df) ((DFWORD(df, 0)&0x7c000000)==0x78000000) argument 318 #define DFISNAN(df) ((DFWORD(df, 0)&0x7c000000)==0x7c000000) argument 319 #define DFISQNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7c000000) argument 320 #define DFISSNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7e000000) argument [all …]
|
/third_party/boost/boost/math/distributions/ |
D | inverse_chi_squared.hpp | 54 inverse_chi_squared_distribution(RealType df, RealType l_scale) : m_df(df), m_scale (l_scale) in inverse_chi_squared_distribution() argument 65 inverse_chi_squared_distribution(RealType df = 1) : m_df(df) in inverse_chi_squared_distribution() argument 118 RealType df = dist.degrees_of_freedom(); in pdf() local 125 (function, df, scale, &error_result, Policy()) in pdf() 145 RealType result = df * scale/2 / x; in pdf() 148 result = gamma_p_derivative(df/2, result, Policy()) * df * scale/2; in pdf() 158 RealType df = dist.degrees_of_freedom(); in cdf() local 163 detail::check_inverse_chi_squared(function, df, scale, &error_result, Policy()) in cdf() 180 return boost::math::gamma_q(df / 2, (df * (scale / 2)) / x, Policy()); in cdf() 187 RealType df = dist.degrees_of_freedom(); in quantile() local [all …]
|
D | students_t.hpp | 38 students_t_distribution(RealType df) : df_(df) in students_t_distribution() argument 94 RealType df = dist.degrees_of_freedom(); in pdf() local 96 "boost::math::pdf(const students_t_distribution<%1%>&, %1%)", df, &error_result, Policy())) in pdf() 110 if (df > limit) in pdf() 118 RealType basem1 = x * x / df; in pdf() 121 result = exp(-boost::math::log1p(basem1, Policy()) * (1+df) / 2); in pdf() 125 result = pow(1 / (1 + basem1), (df + 1) / 2); in pdf() 127 result /= sqrt(df) * boost::math::beta(df / 2, RealType(0.5f), Policy()); in pdf() 137 RealType df = dist.degrees_of_freedom(); in cdf() local 139 "boost::math::cdf(const students_t_distribution<%1%>&, %1%)", df, &error_result, Policy())) in cdf() [all …]
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_ctr_drbg.data | 33 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #0 37 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #1 41 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #2 45 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #3 49 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #4 53 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #5 57 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #6 61 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #7 65 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #8 69 CTR_DRBG NIST Validation (AES-256 use df,True,256,128,0,0) #9 [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | dcfmapts.cpp | 137 DecimalFormat df("0", {"en", status}, status); in testAPI() local 139 assertEquals("pat 0: ", 0, df.getGroupingSize()); in testAPI() 140 assertEquals("pat 0: ", (UBool) FALSE, (UBool) df.isGroupingUsed()); in testAPI() 141 df.setGroupingUsed(false); in testAPI() 142 assertEquals("pat 0 then disabled: ", 0, df.getGroupingSize()); in testAPI() 143 assertEquals("pat 0 then disabled: ", u"1111", df.format(1111, result.remove())); in testAPI() 144 df.setGroupingUsed(true); in testAPI() 145 assertEquals("pat 0 then enabled: ", 0, df.getGroupingSize()); in testAPI() 146 assertEquals("pat 0 then enabled: ", u"1111", df.format(1111, result.remove())); in testAPI() 149 DecimalFormat df("#,##0", {"en", status}, status); in testAPI() local [all …]
|
D | miscdtfm.cpp | 165 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), *symbols, status); in test4099975() local 168 format0 = df->format(d, format0); in test4099975() 170 localizedPattern0 = df->toLocalizedPattern(localizedPattern0, status); in test4099975() 174 format1 = df->format(d, format1); in test4099975() 180 localizedPattern1 = df->toLocalizedPattern(localizedPattern1, status); in test4099975() 187 delete df; in test4099975() 197 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), status); in test4099975() local 199 df->setDateFormatSymbols(*symbols); in test4099975() 201 format0 = df->format(d, format0); in test4099975() 203 localizedPattern0 = df->toLocalizedPattern(localizedPattern0, status); in test4099975() [all …]
|
D | numrgts.cpp | 293 DecimalFormat *df = new DecimalFormat(status); in Test4088161() local 296 df->setMinimumFractionDigits(0); in Test4088161() 297 df->setMaximumFractionDigits(16); in Test4088161() 301 logln(UnicodeString("maxFractionDigits = ") + df->getMaximumFractionDigits()); in Test4088161() 303 logln(" format(d) = '" + df->format(d, sBuf1, fp1) + "'"); in Test4088161() 304 df->setMaximumFractionDigits(17); in Test4088161() 307 logln(UnicodeString("maxFractionDigits = ") + df->getMaximumFractionDigits()); in Test4088161() 308 sBuf2 = df->format(d, sBuf2, fp2); in Test4088161() 313 delete df; in Test4088161() 329 DecimalFormat *df = new DecimalFormat("#,##0.0", *symbols, status); in Test4087245() local [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | NumberFormatTest.java | 263 DecimalFormat df = new DecimalFormat("0.00 ; -0.00"); in Test20186_SpacesAroundSemicolon() local 264 expect2(df, 1, "1.00 "); in Test20186_SpacesAroundSemicolon() 265 expect2(df, -1, " -1.00"); in Test20186_SpacesAroundSemicolon() 267 df = new DecimalFormat("0.00;"); in Test20186_SpacesAroundSemicolon() 268 expect2(df, 1, "1.00"); in Test20186_SpacesAroundSemicolon() 269 expect2(df, -1, "-1.00"); in Test20186_SpacesAroundSemicolon() 271 df = new DecimalFormat("0.00;0.00"); in Test20186_SpacesAroundSemicolon() 272 expect2(df, 1, "1.00"); in Test20186_SpacesAroundSemicolon() 273 expect(df, -1, "1.00"); // parses as 1, not -1 in Test20186_SpacesAroundSemicolon() 275 df = new DecimalFormat(" 0.00 ; -0.00 "); in Test20186_SpacesAroundSemicolon() [all …]
|
D | NumberRegressionTests.java | 101 DecimalFormat df = new DecimalFormat(); in Test4088161() local 103 df.setMinimumFractionDigits(0); in Test4088161() 104 df.setMaximumFractionDigits(16); in Test4088161() 108 logln("maxFractionDigits = " + df.getMaximumFractionDigits()); in Test4088161() 109 logln(" format(d) = '" + df.format(d, sBuf1, fp1) + "'"); in Test4088161() 110 df.setMaximumFractionDigits(17); in Test4088161() 113 logln("maxFractionDigits = " + df.getMaximumFractionDigits()); in Test4088161() 114 df.format(d, sBuf2, fp2); in Test4088161() 125 DecimalFormat df = new DecimalFormat("#,##0.0", symbols); in Test4087245() local 130 df.format(n, buf1, new FieldPosition(0))); in Test4087245() [all …]
|
D | NumberFormatRegressionTest.java | 85 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, loc); in TestJ691() local 87 df.setCalendar(cal); in TestJ691() 88 df.setNumberFormat(nf); in TestJ691() 92 df.setLenient(true); in TestJ691() 94 ulocdat = df.parse(udt); in TestJ691() 99 String outString = df.format(ulocdat); in TestJ691() 231 … DecimalFormat df = new DecimalFormat("#,##0.###", new DecimalFormatSymbols(new ULocale("en_US"))); in TestJB5509() local 232 df.setParseStrict(true); in TestJB5509() 235 df.parse(data[i]); in TestJB5509() 406 DecimalFormat df = new DecimalFormat("0", EN); in TestGroupingEnabledDisabledGetters() local [all …]
|
D | DateFormatMiscTests.java | 81 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols); in Test4099975new() local 82 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new() 84 logln(df.toLocalizedPattern()); in Test4099975new() 85 String s0 = df.format(d); in Test4099975new() 89 logln(df.toLocalizedPattern()); in Test4099975new() 90 String s1 = df.format(d); in Test4099975new() 95 if (!df.equals(dfClone)) { in Test4099975new() 102 SimpleDateFormat df = new SimpleDateFormat("E hh:mm"); in Test4099975new() local 103 df.setDateFormatSymbols(symbols); in Test4099975new() 104 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
D | NumberFormatTest.java | 266 DecimalFormat df = new DecimalFormat("0.00 ; -0.00"); in Test20186_SpacesAroundSemicolon() local 267 expect2(df, 1, "1.00 "); in Test20186_SpacesAroundSemicolon() 268 expect2(df, -1, " -1.00"); in Test20186_SpacesAroundSemicolon() 270 df = new DecimalFormat("0.00;"); in Test20186_SpacesAroundSemicolon() 271 expect2(df, 1, "1.00"); in Test20186_SpacesAroundSemicolon() 272 expect2(df, -1, "-1.00"); in Test20186_SpacesAroundSemicolon() 274 df = new DecimalFormat("0.00;0.00"); in Test20186_SpacesAroundSemicolon() 275 expect2(df, 1, "1.00"); in Test20186_SpacesAroundSemicolon() 276 expect(df, -1, "1.00"); // parses as 1, not -1 in Test20186_SpacesAroundSemicolon() 278 df = new DecimalFormat(" 0.00 ; -0.00 "); in Test20186_SpacesAroundSemicolon() [all …]
|
D | NumberRegressionTests.java | 104 DecimalFormat df = new DecimalFormat(); in Test4088161() local 106 df.setMinimumFractionDigits(0); in Test4088161() 107 df.setMaximumFractionDigits(16); in Test4088161() 111 logln("maxFractionDigits = " + df.getMaximumFractionDigits()); in Test4088161() 112 logln(" format(d) = '" + df.format(d, sBuf1, fp1) + "'"); in Test4088161() 113 df.setMaximumFractionDigits(17); in Test4088161() 116 logln("maxFractionDigits = " + df.getMaximumFractionDigits()); in Test4088161() 117 df.format(d, sBuf2, fp2); in Test4088161() 128 DecimalFormat df = new DecimalFormat("#,##0.0", symbols); in Test4087245() local 133 df.format(n, buf1, new FieldPosition(0))); in Test4087245() [all …]
|
D | NumberFormatRegressionTest.java | 88 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, loc); in TestJ691() local 90 df.setCalendar(cal); in TestJ691() 91 df.setNumberFormat(nf); in TestJ691() 95 df.setLenient(true); in TestJ691() 97 ulocdat = df.parse(udt); in TestJ691() 102 String outString = df.format(ulocdat); in TestJ691() 234 … DecimalFormat df = new DecimalFormat("#,##0.###", new DecimalFormatSymbols(new ULocale("en_US"))); in TestJB5509() local 235 df.setParseStrict(true); in TestJB5509() 238 df.parse(data[i]); in TestJB5509() 409 DecimalFormat df = new DecimalFormat("0", EN); in TestGroupingEnabledDisabledGetters() local [all …]
|
D | DateFormatMiscTests.java | 84 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols); in Test4099975new() local 85 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new() 87 logln(df.toLocalizedPattern()); in Test4099975new() 88 String s0 = df.format(d); in Test4099975new() 92 logln(df.toLocalizedPattern()); in Test4099975new() 93 String s1 = df.format(d); in Test4099975new() 98 if (!df.equals(dfClone)) { in Test4099975new() 105 SimpleDateFormat df = new SimpleDateFormat("E hh:mm"); in Test4099975new() local 106 df.setDateFormatSymbols(symbols); in Test4099975new() 107 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new() [all …]
|
/third_party/boost/libs/math/test/ |
D | test_nccs_hooks.hpp | 14 inline float nccs_cdf(float df, float nc, float x) in nccs_cdf() argument 16 return (float)pnchisq(x, df, nc, 1, 0); in nccs_cdf() 18 inline double nccs_cdf(double df, double nc, double x) in nccs_cdf() argument 20 return pnchisq(x, df, nc, 1, 0); in nccs_cdf() 22 inline long double nccs_cdf(long double df, long double nc, long double x) in nccs_cdf() argument 24 return pnchisq((double)x, (double)df, (double)nc, 1, 0); in nccs_cdf() 33 inline double nccs_cdf(double df, double nc, double x) in nccs_cdf() argument 37 cdfchn(&kind, &p, &q, &x, &df, &nc, &status, &bound); in nccs_cdf() 40 inline float nccs_cdf(float df, float nc, float x) in nccs_cdf() argument 42 return (double)nccs_cdf((double)df, (double)nc, (double)x); in nccs_cdf() [all …]
|
/third_party/boost/libs/multiprecision/test/ |
D | test_generic_conv.cpp | 64 dec_float_500 df(c); in main() local 66 BOOST_CHECK_EQUAL(df, df2); in main() 67 df.assign(-c); in main() 69 BOOST_CHECK_EQUAL(df, df2); in main() 91 df.assign(c); in main() 92 df /= dec_float_500(gen()); in main() 95 mpf.assign(df); in main() 96 mpf2 = static_cast<mpf_type>(df.str()); in main() 98 df.assign(mpf); in main() 100 BOOST_CHECK(fabs((df - df2) / df) < tol); in main() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | ICUDurationTest.java | 177 DurationFormat df; in TestBasics() local 181 df = DurationFormat.getInstance(new ULocale("it")); in TestBasics() 182 formatted = df.formatDurationFromNow(4096); in TestBasics() 190 formatted = df.formatDurationFromNowTo(new Date(0)); in TestBasics() 200 formatted = df.formatDurationFrom(1000*3600*24, new Date(0).getTime()); in TestBasics() 208 formatted = df.format(new Long(1000*3600*24*2)); in TestBasics() 220 DurationFormat df; in TestSimpleXMLDuration() local 227 df = DurationFormat.getInstance(new ULocale("en")); in TestSimpleXMLDuration() 229 out = df.format(d); in TestSimpleXMLDuration() 238 df = DurationFormat.getInstance(new ULocale("en")); in TestSimpleXMLDuration() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/duration/ |
D | ICUDurationTest.java | 180 DurationFormat df; in TestBasics() local 184 df = DurationFormat.getInstance(new ULocale("it")); in TestBasics() 185 formatted = df.formatDurationFromNow(4096); in TestBasics() 193 formatted = df.formatDurationFromNowTo(new Date(0)); in TestBasics() 203 formatted = df.formatDurationFrom(1000*3600*24, new Date(0).getTime()); in TestBasics() 211 formatted = df.format(new Long(1000*3600*24*2)); in TestBasics() 223 DurationFormat df; in TestSimpleXMLDuration() local 230 df = DurationFormat.getInstance(new ULocale("en")); in TestSimpleXMLDuration() 232 out = df.format(d); in TestSimpleXMLDuration() 241 df = DurationFormat.getInstance(new ULocale("en")); in TestSimpleXMLDuration() [all …]
|
/third_party/mindspore/mindspore/mindrecord/tools/ |
D | csv_to_mr.py | 92 def _get_schema(self, df): argument 98 if col not in df.columns: 101 self.columns_list = df.columns 105 if str(df[col].dtype) == 'int64': 107 elif str(df[col].dtype) == 'float64': 109 elif str(df[col].dtype) == 'bool': 117 def _get_row_of_csv(self, df, columns_list): argument 119 for _, r in df.iterrows(): 122 if str(df[col].dtype) == 'bool': 139 df = pd.read_csv(self.source) [all …]
|
/third_party/glib/gio/tests/ |
D | gdbus-close-pending.c | 174 DelayedClose *df = data; in delayed_close_free() local 176 g_object_unref (df->stream); in delayed_close_free() 177 if (df->cancellable) in delayed_close_free() 178 g_object_unref (df->cancellable); in delayed_close_free() 179 g_free (df); in delayed_close_free() 185 DelayedClose *df = data; in delayed_close_cb() local 188 close_async (df->stream, df->io_priority, df->cancellable, df->callback, in delayed_close_cb() 189 df->user_data); in delayed_close_cb() 202 DelayedClose *df; in my_slow_close_output_stream_close_async() local 204 df = g_new0 (DelayedClose, 1); in my_slow_close_output_stream_close_async() [all …]
|