/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | StatsBenchmark.java | 37 double mean(double[] values) { in mean() method 47 double mean(double[] values) { in mean() method 61 double mean(double[] values) { in mean() method 62 double mean = values[0]; in mean() local 64 mean = mean + (values[i] - mean) / (i + 1); in mean() 66 return mean; in mean() 70 abstract double mean(double[] values); in mean() method in StatsBenchmark.MeanAlgorithm 74 private final double mean; field in StatsBenchmark.MeanAndVariance 77 MeanAndVariance(double mean, double variance) { in MeanAndVariance() argument 78 this.mean = mean; in MeanAndVariance() [all …]
|
/external/opencv3/modules/core/src/ |
D | pca.cpp | 98 mean.create( mean_sz, ctype ); in operator ()() 105 _mean.convertTo(mean, ctype); in operator ()() 109 calcCovarMatrix( data, covar, mean, covar_flags, ctype ); in operator ()() 116 Mat tmp_data, tmp_mean = repeat(mean, data.rows/mean.rows, data.cols/mean.cols); in operator ()() 117 if( data.type() != ctype || tmp_mean.data == mean.data ) in operator ()() 158 fs << "mean" << mean; in write() 169 cv::read(fs["mean"], mean); in read() 235 mean.create( mean_sz, ctype ); in operator ()() 242 _mean.convertTo(mean, ctype); in operator ()() 245 calcCovarMatrix( data, covar, mean, covar_flags, ctype ); in operator ()() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
D | ExponentialDistributionImpl.java | 44 private double mean; field in ExponentialDistributionImpl 53 public ExponentialDistributionImpl(double mean) { in ExponentialDistributionImpl() argument 54 this(mean, DEFAULT_INVERSE_ABSOLUTE_ACCURACY); in ExponentialDistributionImpl() 64 public ExponentialDistributionImpl(double mean, double inverseCumAccuracy) { in ExponentialDistributionImpl() argument 66 setMeanInternal(mean); in ExponentialDistributionImpl() 77 public void setMean(double mean) { in setMean() argument 78 setMeanInternal(mean); in setMean() 90 this.mean = newMean; in setMeanInternal() 98 return mean; in getMean() 125 return FastMath.exp(-x / mean) / mean; in density() [all …]
|
D | NormalDistributionImpl.java | 50 private double mean = 0; field in NormalDistributionImpl 63 public NormalDistributionImpl(double mean, double sd){ in NormalDistributionImpl() argument 64 this(mean, sd, DEFAULT_INVERSE_ABSOLUTE_ACCURACY); in NormalDistributionImpl() 76 public NormalDistributionImpl(double mean, double sd, double inverseCumAccuracy) { in NormalDistributionImpl() argument 78 setMeanInternal(mean); in NormalDistributionImpl() 96 return mean; in getMean() 105 public void setMean(double mean) { in setMean() argument 106 setMeanInternal(mean); in setMean() 114 this.mean = newMean; in setMeanInternal() 171 double x0 = x - mean; in density() [all …]
|
D | PoissonDistributionImpl.java | 57 private double mean; field in PoissonDistributionImpl 146 return mean; in getMean() 175 mean = p; in setNormalAndMeanInternal() 193 ret = FastMath.exp(-mean); in probability() 196 SaddlePointExpansion.getDeviancePart(x, mean)) / in probability() 219 return Gamma.regularizedGammaQ((double) x + 1, mean, epsilon, maxIterations); in cumulativeProbability() 261 return (int) FastMath.min(randomData.nextPoisson(mean), Integer.MAX_VALUE); in sample() 301 setNormalAndMeanInternal(value, mean); in setNormal()
|
/external/opencv3/modules/ml/test/ |
D | test_mltests.cpp | 75 float mean = 0, sigma = 0; in run_test_case() local 78 mean += res[k]; in run_test_case() 80 mean = mean /icount; in run_test_case() 83 sigma += (res[k] - mean)*(res[k] - mean); in run_test_case() 86 printf("%f, %f\n", mean, sigma); in run_test_case() 95 float mean, sigma; in validate_test_results() local 102 resultNode["mean"] >> mean; in validate_test_results() 108 … testCaseIdx, curErr, mean, abs( curErr - mean), coeff, coeff*sigma ); in validate_test_results() 109 if ( abs( curErr - mean) > coeff*sigma ) in validate_test_results() 111 …ts->printf( cvtest::TS::LOG, "abs(%f - %f) > %f - OUT OF RANGE!\n", curErr, mean, coeff*sigma, coe… in validate_test_results()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | UncorrelatedRandomVectorGenerator.java | 40 private final double[] mean; field in UncorrelatedRandomVectorGenerator 53 public UncorrelatedRandomVectorGenerator(double[] mean, in UncorrelatedRandomVectorGenerator() argument 56 if (mean.length != standardDeviation.length) { in UncorrelatedRandomVectorGenerator() 57 throw new DimensionMismatchException(mean.length, standardDeviation.length); in UncorrelatedRandomVectorGenerator() 59 this.mean = mean.clone(); in UncorrelatedRandomVectorGenerator() 73 mean = new double[dimension]; in UncorrelatedRandomVectorGenerator() 84 double[] random = new double[mean.length]; in nextVector() 86 random[i] = mean[i] + standardDeviation[i] * generator.nextNormalizedDouble(); in nextVector()
|
D | CorrelatedRandomVectorGenerator.java | 67 private final double[] mean; field in CorrelatedRandomVectorGenerator 97 public CorrelatedRandomVectorGenerator(double[] mean, in CorrelatedRandomVectorGenerator() argument 103 if (mean.length != order) { in CorrelatedRandomVectorGenerator() 104 throw new DimensionMismatchException(mean.length, order); in CorrelatedRandomVectorGenerator() 106 this.mean = mean.clone(); in CorrelatedRandomVectorGenerator() 131 mean = new double[order]; in CorrelatedRandomVectorGenerator() 133 mean[i] = 0; in CorrelatedRandomVectorGenerator() 292 double[] correlated = new double[mean.length]; 294 correlated[i] = mean[i];
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/ |
D | eval.pass.cpp | 47 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local 53 double d = (u[i] - mean); in main() 64 double x_mean = d.mean(); in main() 65 double x_var = d.mean(); in main() 68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 86 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local 92 double d = (u[i] - mean); in main() 103 double x_mean = d.mean(); in main() 104 double x_var = d.mean(); in main() 107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() [all …]
|
D | eval_param.pass.cpp | 49 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local 55 double d = (u[i] - mean); in main() 66 double x_mean = p.mean(); in main() 67 double x_var = p.mean(); in main() 70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 90 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local 96 double d = (u[i] - mean); in main() 107 double x_mean = p.mean(); in main() 108 double x_var = p.mean(); in main() 111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() [all …]
|
/external/opencv/cxcore/src/ |
D | cxmean.cpp | 165 mean[0] = scale*(double)tmp##0 171 mean[0] = t0; \ 172 mean[1] = t1 179 mean[0] = t0; \ 180 mean[1] = t1; \ 181 mean[2] = t2 187 mean[0] = t0; \ 188 mean[1] = t1; \ 191 mean[2] = t0; \ 192 mean[3] = t1 [all …]
|
/external/opencv3/modules/core/perf/ |
D | perf_stat.cpp | 24 PERF_TEST_P(Size_MatType, mean, TYPICAL_MATS) in PERF_TEST_P() argument 34 TEST_CYCLE() s = mean(src); in PERF_TEST_P() 50 TEST_CYCLE() s = mean(src, mask); in PERF_TEST_P() 61 Scalar mean; in PERF_TEST_P() local 64 declare.in(src, WARMUP_RNG).out(mean, dev); in PERF_TEST_P() 66 TEST_CYCLE() meanStdDev(src, mean, dev); in PERF_TEST_P() 68 SANITY_CHECK(mean, 1e-5, ERROR_RELATIVE); in PERF_TEST_P() 79 Scalar mean; in PERF_TEST_P() local 82 declare.in(src, WARMUP_RNG).in(mask).out(mean, dev); in PERF_TEST_P() 84 TEST_CYCLE() meanStdDev(src, mean, dev, mask); in PERF_TEST_P() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/ |
D | eval.pass.cpp | 47 double mean = std::accumulate(u.begin(), u.end(), in main() local 54 double d = (u[i] - mean); in main() 69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 87 double mean = std::accumulate(u.begin(), u.end(), in main() local 94 double d = (u[i] - mean); in main() 109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 127 double mean = std::accumulate(u.begin(), u.end(), in main() local 134 double d = (u[i] - mean); in main() 149 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 167 double mean = std::accumulate(u.begin(), u.end(), in main() local [all …]
|
/external/guava/guava/src/com/google/common/math/ |
D | DoubleMath.java | 390 private double mean = 0.0; field in DoubleMath.MeanAccumulator 396 mean += (value - mean) / count; in add() 399 double mean() { in mean() method in DoubleMath.MeanAccumulator 401 return mean; in mean() 410 public static double mean(double... values) { in mean() method in DoubleMath 415 return accumulator.mean(); in mean() 423 public static double mean(int... values) { in mean() method in DoubleMath 428 return accumulator.mean(); in mean() 437 public static double mean(long... values) { in mean() method in DoubleMath 442 return accumulator.mean(); in mean() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/moment/ |
D | Variance.java | 252 Mean mean = new Mean(); in evaluate() local 253 double m = mean.evaluate(values, begin, length); in evaluate() 312 Mean mean = new Mean(); in evaluate() local 313 double m = mean.evaluate(values, weights, begin, length); in evaluate() 388 public double evaluate(final double[] values, final double mean, in evaluate() argument 401 dev = values[i] - mean; in evaluate() 441 public double evaluate(final double[] values, final double mean) { in evaluate() argument 442 return evaluate(values, mean, 0, values.length); in evaluate() 491 final double mean, final int begin, final int length) { in evaluate() argument 503 dev = values[i] - mean; in evaluate() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/ |
D | eval.pass.cpp | 47 double mean = std::accumulate(u.begin(), u.end(), in main() local 54 double d = (u[i] - mean); in main() 70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 88 double mean = std::accumulate(u.begin(), u.end(), in main() local 95 double d = (u[i] - mean); in main() 111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 129 double mean = std::accumulate(u.begin(), u.end(), in main() local 136 double d = (u[i] - mean); in main() 152 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 170 double mean = std::accumulate(u.begin(), u.end(), in main() local [all …]
|
/external/clang/test/FixIt/ |
D | typo.m | 12 …NSstring *str = @"A string"; // expected-error{{unknown type name 'NSstring'; did you mean 'NSStri… 50 herivar = a; // expected-error{{use of undeclared identifier 'herivar'; did you mean 'her_ivar'?}} 51 hisivar = a; // expected-error{{use of undeclared identifier 'hisivar'; did you mean 'his_ivar'?}} 52 …self->herivar = a; // expected-error{{'B' does not have a member named 'herivar'; did you mean 'he… 53 …self->hisivar = a; // expected-error{{'B' does not have a member named 'hisivar'; did you mean 'hi… 54 …// expected-error{{property 'hisprop' not found on object of type 'B *'; did you mean 'his_prop'?}} 55 …// expected-error{{property 'herprop' not found on object of type 'B *'; did you mean 'her_prop'?}} 56 … 0; // expected-error{{property 's_prop' not found on object of type 'B *'; did you mean 'sprop'?}} 64 [NSstring method:17]; // expected-error{{unknown receiver 'NSstring'; did you mean 'NSString'?}} 81 …// expected-error{{property 'valu' not found on object of type 'Collide *'; did you mean 'value'?}} [all …]
|
/external/opencv/cv/src/ |
D | cvadapthresh.cpp | 48 CvMat* mean = 0; in icvAdaptiveThreshold_MeanC() local 70 mean = dst; in icvAdaptiveThreshold_MeanC() 72 CV_CALL( mean = cvCreateMat( rows, cols, CV_8UC1 )); in icvAdaptiveThreshold_MeanC() 74 CV_CALL( cvSmooth( src, mean, method == CV_ADAPTIVE_THRESH_MEAN_C ? in icvAdaptiveThreshold_MeanC() 89 const uchar* m = mean->data.ptr + i*mean->step; in icvAdaptiveThreshold_MeanC() 98 if( mean != dst ) in icvAdaptiveThreshold_MeanC() 99 cvReleaseMat( &mean ); in icvAdaptiveThreshold_MeanC()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/ |
D | eval.pass.cpp | 47 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() local 54 D::result_type d = (u[i] - mean); in main() 69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 87 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() local 94 D::result_type d = (u[i] - mean); in main() 109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 127 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() local 134 D::result_type d = (u[i] - mean); in main() 149 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 167 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() local [all …]
|
/external/opencv3/modules/cudabgsegm/src/cuda/ |
D | mog2.cu | 173 WorkT mean = gmm_mean(mode * frame.rows + y, x); in mog2() local 176 WorkT diff = mean - pix; in mog2() 196 gmm_mean(mode * frame.rows + y, x) = mean - k * diff; in mog2() 298 WorkT mean = gmm_mean(mode * frame.rows + y, x); in mog2() local 300 WorkT pix_mean = pix * mean; in mog2() 303 float denominator = sqr(mean); in mog2() 314 WorkT dD = a * mean - pix; in mog2() 333 …, PtrStepSzb fgmask, PtrStepSzb modesUsed, PtrStepSzf weight, PtrStepSzf variance, PtrStepSzb mean, in mog2_caller() argument 346 … weight, variance, (PtrStepSz<WorkT>) mean, in mog2_caller() 354 … weight, variance, (PtrStepSz<WorkT>) mean, in mog2_caller() [all …]
|
/external/clang/test/SemaCXX/ |
D | warn-memsize-comparison.cpp | 21 expected-note {{did you mean to compare}} \ in f() 27 expected-note {{did you mean to compare}} \ in f() 33 expected-note {{did you mean to compare}} \ in f() 39 expected-note {{did you mean to compare}} \ in f() 45 expected-note {{did you mean to compare}} \ in f() 51 expected-note {{did you mean to compare}} \ in f() 57 expected-note {{did you mean to compare}} \ in f() 63 expected-note {{did you mean to compare}} \ in f() 69 expected-note {{did you mean to compare}} \ in f() 75 expected-note {{did you mean to compare}} \ in f() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/ |
D | eval.pass.cpp | 47 double mean = std::accumulate(u.begin(), u.end(), in main() local 54 double d = (u[i] - mean); in main() 69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 87 double mean = std::accumulate(u.begin(), u.end(), in main() local 94 double d = (u[i] - mean); in main() 109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 127 double mean = std::accumulate(u.begin(), u.end(), in main() local 134 double d = (u[i] - mean); in main() 149 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 167 double mean = std::accumulate(u.begin(), u.end(), in main() local [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/ |
D | eval.pass.cpp | 47 double mean = std::accumulate(u.begin(), u.end(), in main() local 54 double d = (u[i] - mean); in main() 69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 87 double mean = std::accumulate(u.begin(), u.end(), in main() local 94 double d = (u[i] - mean); in main() 109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 127 double mean = std::accumulate(u.begin(), u.end(), in main() local 134 double d = (u[i] - mean); in main() 149 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 167 double mean = std::accumulate(u.begin(), u.end(), in main() local [all …]
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | DoubleMathTest.java | 649 assertEquals(-1.375, DoubleMath.mean(1.1, -2.2, 4.4, -8.8), 1.0e-10); in testMean_doubleVarargs() 650 assertEquals(1.1, DoubleMath.mean(1.1), 1.0e-10); in testMean_doubleVarargs() 652 DoubleMath.mean(Double.NaN); in testMean_doubleVarargs() 657 DoubleMath.mean(Double.POSITIVE_INFINITY); in testMean_doubleVarargs() 665 assertEquals(-13.75, DoubleMath.mean(11, -22, 44, -88), 1.0e-10); in testMean_intVarargs() 666 assertEquals(11.0, DoubleMath.mean(11), 1.0e-10); in testMean_intVarargs() 671 assertEquals(-13.75, DoubleMath.mean(11L, -22L, 44L, -88L), 1.0e-10); in testMean_longVarargs() 672 assertEquals(11.0, DoubleMath.mean(11L), 1.0e-10); in testMean_longVarargs() 678 DoubleMath.mean(); in testMean_emptyVarargs() 686 assertEquals(-1.375, DoubleMath.mean(ImmutableList.of(1.1, -2.2, 4.4, -8.8)), 1.0e-10); in testMean_doubleIterable() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.extreme/ |
D | eval.pass.cpp | 47 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local 53 double d = (u[i] - mean); in main() 68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 86 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local 92 double d = (u[i] - mean); in main() 107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 125 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local 131 double d = (u[i] - mean); in main() 146 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 164 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local [all …]
|