Home
last modified time | relevance | path

Searched refs:mean (Results 1 – 25 of 710) sorted by relevance

12345678910>>...29

/external/guava/guava-tests/benchmark/com/google/common/math/
DStatsBenchmark.java37 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/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DExponentialDistributionImpl.java44 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 …]
DNormalDistributionImpl.java50 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 …]
DPoissonDistributionImpl.java57 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/libgdx/gdx/src/com/badlogic/gdx/math/
DFloatCounter.java41 public final WindowedMean mean; field in FloatCounter
46 mean = (windowSize > 1) ? new WindowedMean(windowSize) : null; in FloatCounter()
58 if (mean != null) { in put()
59 mean.addValue(value); in put()
60 this.value = mean.getMean(); in put()
64 if (mean == null || mean.hasEnoughData()) { in put()
79 if (mean != null) mean.clear(); in reset()
DWindowedMean.java28 float mean = 0; field in WindowedMean
70 float mean = 0; in getMean() local
72 mean += values[i]; in getMean()
74 this.mean = mean / values.length; in getMean()
77 return this.mean; in getMean()
96 float mean = getMean(); in standardDeviation() local
99 sum += (values[i] - mean) * (values[i] - mean); in standardDeviation()
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DUncorrelatedRandomVectorGenerator.java40 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()
DCorrelatedRandomVectorGenerator.java67 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/
Deval.pass.cpp47 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 …]
Deval_param.pass.cpp49 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/
Dcxmean.cpp165 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/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp47 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/
DDoubleMath.java390 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/
DVariance.java252 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/clang/test/FixIt/
Dtypo.m12 …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/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/
Deval.pass.cpp47 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/opencv/cv/src/
Dcvadapthresh.cpp48 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/
Deval.pass.cpp47 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/clang/test/SemaCXX/
Dwarn-memsize-comparison.cpp21 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/
Deval.pass.cpp47 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/
Deval.pass.cpp47 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.pois/rand.dist.pois.extreme/
Deval.pass.cpp47 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 …]
Deval_param.pass.cpp48 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
54 double d = (u[i] - mean); in main()
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
88 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
94 double d = (u[i] - mean); in main()
109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
128 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
134 double d = (u[i] - mean); in main()
149 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
168 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DDoubleMathTest.java649 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.norm/rand.dist.norm.t/
Deval.pass.cpp44 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
50 double d = (u[i] - mean); in main()
65 assert(std::abs(mean - x_mean) < 0.01); in main()
80 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
86 double d = (u[i] - mean); in main()
101 assert(std::abs(mean - x_mean) < 0.01); in main()
116 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
122 double d = (u[i] - mean); in main()
137 assert(std::abs(mean - x_mean) < 0.01); in main()

12345678910>>...29