HomeSort by relevance Sort by last modified time
    Searched refs:Gamma (Results 1 - 25 of 40) sorted by null

1 2

  /external/google-tv-pairing-protocol/cpp/src/polo/pairing/
polochallengeresponse.h 27 typedef std::vector<uint8_t> Alpha, Gamma, Nonce;
43 // Computes the gamma value based on the given nonce.
44 virtual Gamma* GetGamma(const Nonce& nonce) const;
46 // Extracts the nonce from the given gamma value.
47 virtual Nonce* ExtractNonce(const Gamma& gamma) const;
49 // Verifies that the given gamma value is correct.
50 virtual bool CheckGamma(const Gamma& gamma) const;
pairinglistener.h 39 // display a decoded secret based on the given gamma value.
40 virtual void OnPerformOutputDeviceRole(const Gamma& gamma) = 0;
polochallengeresponse.cc 96 Gamma* PoloChallengeResponse::GetGamma(const Nonce& nonce) const {
102 Gamma* gamma = new Gamma(nonce.size() * 2); local
105 memcpy(&(*gamma)[0], &(*alpha)[0], nonce.size());
106 memcpy(&(*gamma)[nonce.size()], &nonce[0], nonce.size());
110 return gamma;
113 Nonce* PoloChallengeResponse::ExtractNonce(const Gamma& gamma) const {
114 if ((gamma.size() < 2) || (gamma.size() % 2 != 0))
    [all...]
pairingsession.h 81 bool SetSecret(const Gamma& secret);
194 Gamma* secret_;
pairingsession.cc 90 bool PairingSession::SetSecret(const Gamma& secret) {
91 secret_ = new Gamma(secret);
162 const Gamma* gamma = challenge().GetGamma(*nonce_); local
163 if (!gamma) {
164 LOG(ERROR) << "Failed to get gamma";
170 listener_->OnPerformOutputDeviceRole(*gamma);
171 delete gamma;
  /external/google-tv-pairing-protocol/cpp/tests/polo/pairing/
mocks.h 29 MOCK_CONST_METHOD1(GetGamma, Gamma*(const Nonce& nonce));
30 MOCK_CONST_METHOD1(ExtractNonce, Nonce*(const Gamma& gamma));
31 MOCK_CONST_METHOD1(CheckGamma, bool(const Gamma& gammma));
39 MOCK_METHOD1(OnPerformOutputDeviceRole, void(const Gamma& gamma));
polochallengeresponsetest.cc 112 const Gamma* gamma = response->GetGamma(nonce); local
113 ASSERT_TRUE(gamma);
116 util::PoloUtil::BytesToHexString(&(*gamma)[0], gamma->size()));
117 delete gamma;
121 const Gamma* gamma = response->GetGamma(nonce); local
122 ASSERT_TRUE(gamma);
124 util::PoloUtil::BytesToHexString(&(*gamma)[0], gamma->size()))
    [all...]
serverpairingsessiontest.cc 127 EXPECT_CALL(challenge_, GetGamma(_)).WillOnce(Return(new Gamma(5, 0x5)));
128 EXPECT_CALL(listener_, OnPerformOutputDeviceRole(Gamma(5, 0x5)));
pairingsessiontest.cc 157 EXPECT_CALL(challenge_, GetGamma(_)).WillOnce(Return(new Gamma(10, 0x5)));
158 EXPECT_CALL(listener_, OnPerformOutputDeviceRole(Gamma(10, 0x5)));
202 Gamma gamma(5, 0x1);
206 EXPECT_CALL(challenge_, CheckGamma(gamma)).WillOnce(Return(true));
207 EXPECT_CALL(challenge_, ExtractNonce(gamma))
215 session_.SetSecret(gamma);
232 Gamma gamma(5, 0x1);
236 EXPECT_CALL(challenge_, CheckGamma(gamma)).WillOnce(Return(true))
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/special/
Erf.java 42 * {@link Gamma#regularizedGammaP(double, double, double, int) regularized gamma function},
52 * @see Gamma#regularizedGammaP(double, double, double, int)
58 double ret = Gamma.regularizedGammaP(0.5, x * x, 1.0e-15, 10000);
71 * {@link Gamma#regularizedGammaQ(double, double, double, int) regularized gamma function},
81 * @see Gamma#regularizedGammaQ(double, double, double, int)
88 final double ret = Gamma.regularizedGammaQ(0.5, x * x, 1.0e-15, 10000);
Beta.java 196 ret = Gamma.logGamma(a) + Gamma.logGamma(b) -
197 Gamma.logGamma(a + b);
Gamma.java 26 * Gamma family of functions.
30 public class Gamma {
36 public static final double GAMMA = 0.577215664901532860606512090082;
74 private Gamma() {
79 * Returns the natural logarithm of the gamma function &#915;(x).
84 * Gamma Function</a>, equation (28).</li>
87 * <li><a href="http://my.fit.edu/~gabdo/gamma.txt">Paul Godfrey, A note on
88 * the computation of the convergent Lanczos complex Gamma approximation
118 * Returns the regularized gamma function P(a, x).
122 * @return the regularized gamma function P(a, x
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
BetaDistributionImpl.java 22 import org.apache.commons.math.special.Gamma;
121 z = Gamma.logGamma(alpha) + Gamma.logGamma(beta) - Gamma.logGamma(alpha + beta);
GammaDistributionImpl.java 24 import org.apache.commons.math.special.Gamma;
54 * Create a new gamma distribution with the given alpha and beta values.
63 * Create a new gamma distribution with the given alpha and beta values.
100 ret = Gamma.regularizedGammaP(alpha, x / beta);
206 return FastMath.pow(x / beta, alpha - 1) / beta * FastMath.exp(-x / beta) / FastMath.exp(Gamma.logGamma(alpha));
248 // NOTE: gamma is skewed to the left
275 // Gamma is skewed to the left, therefore, P(X < &mu;) > .5
TDistributionImpl.java 25 import org.apache.commons.math.special.Gamma;
118 return FastMath.exp(Gamma.logGamma(nPlus1Over2) - 0.5 * (FastMath.log(FastMath.PI) + FastMath.log(n)) -
119 Gamma.logGamma(n/2) - nPlus1Over2 * FastMath.log(1 + x * x /n));
WeibullDistributionImpl.java 24 import org.apache.commons.math.special.Gamma;
306 * The mean is <code>scale * Gamma(1 + (1 / shape))</code>
307 * where <code>Gamma(...)</code> is the Gamma-function
316 return sc * FastMath.exp(Gamma.logGamma(1 + (1 / sh)));
323 * <code>scale^2 * Gamma(1 + (2 / shape)) - mean^2</code>
324 * where <code>Gamma(...)</code> is the Gamma-function
335 FastMath.exp(Gamma.logGamma(1 + (2 / sh))) -
PoissonDistributionImpl.java 24 import org.apache.commons.math.special.Gamma;
63 * Gamma#regularizedGammaP or continued fraction approximation of Gamma#regularizedGammaQ.
219 return Gamma.regularizedGammaQ((double) x + 1, mean, epsilon, maxIterations);
SaddlePointExpansion.java 19 import org.apache.commons.math.special.Gamma;
114 ret = Gamma.logGamma(z + 1.0) - (z + 0.5) * FastMath.log(z) +
  /external/clang/test/Sema/
exprs.c 80 void test7(int *P, _Complex float Gamma) {
81 P = (P-42) + Gamma*4; // expected-error {{invalid operands to binary expression ('int *' and '_Complex float')}}
  /external/opencv3/modules/cudaoptflow/test/
test_optflow.cpp 75 cv::cuda::BroxOpticalFlow::create(0.197 /*alpha*/, 50.0 /*gamma*/, 0.8 /*scale_factor*/,
143 cv::cuda::BroxOpticalFlow::create(0.197 /*alpha*/, 50.0 /*gamma*/, 0.8 /*scale_factor*/,
339 IMPLEMENT_PARAM_CLASS(Gamma, double)
342 PARAM_TEST_CASE(OpticalFlowDual_TVL1, cv::cuda::DeviceInfo, Gamma)
345 double gamma; local
350 gamma = GET_PARAM(1);
367 d_alg->setGamma(gamma);
376 alg->setGamma(gamma);
386 testing::Values(Gamma(0.0), Gamma(1.0))))
    [all...]
  /external/clang/test/Misc/
diag-template-diffing.cpp 119 class Gamma{};
136 void set5(Alpha<Beta<Gamma<Delta<int, int>, int>, int>, int>);
138 set5(Alpha<Beta<Gamma<void, void>, double>, double>());
141 // CHECK-ELIDE-NOTREE: candidate function not viable: no known conversion from 'Alpha<Beta<Gamma<void, void>, double>, double>' to 'Alpha<Beta<Gamma<Delta<int, int>, int>, int>, int>' for 1st argument
143 // CHECK-NOELIDE-NOTREE: candidate function not viable: no known conversion from 'Alpha<Beta<Gamma<void, void>, double>, double>' to 'Alpha<Beta<Gamma<Delta<int, int>, int>, int>, int>' for 1st argument
148 // CHECK-ELIDE-TREE: Gamma<
157 // CHECK-NOELIDE-TREE: Gamma<
167 // CHECK-ELIDE-NOTREE: candidate function not viable: no known conversion from 'Alpha<Beta<Delta<int, int>, [...]>, [...]>' to 'Alpha<Beta<Gamma<Delta<int, int>, int>, [...]>, [...]>' for 1st argumen
    [all...]
  /external/pdfium/core/src/fxcodec/codec/
fx_codec_icc.cpp 239 void* CreateProfile_Gray(double gamma) {
244 cmsToneCurve* curve = cmsBuildGamma(NULL, gamma);
425 text.Format("%lf", pIccParam->Gamma);
451 pCache->m_pProfile = CreateProfile_Gray(pIccParam->Gamma);
    [all...]
  /external/pdfium/third_party/lcms2-2.6/src/
cmsgamma.c 319 // X = Y ^ Gamma
332 // Type 1 Reversed: X = Y ^1/gamma
346 // Y = (aX + b)^Gamma | X >= -b/a
378 // Y = (aX + b)^Gamma | X <= -b/a
419 // Y = (aX + b)^Gamma | X >= d
455 // Y = (aX + b)^Gamma + e | X >= d
495 // Y = (a * X + b) ^ Gamma + c
505 // ((Y - c) ^1/Gamma - b) / a
515 // Y = a * log (b * X^Gamma + c) + d
525 // (Y - d) / a = log(b * X ^Gamma + c
1265 cmsFloat64Number gamma, sum, sum2; local
    [all...]
  /external/pdfium/core/include/fxcodec/
fx_codec.h 298 double* gamma);
486 double Gamma;
  /packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
CharEscapers.java 267 .addEscape('\u0393', "&Gamma;")
291 .addEscape('\u03B3', "&gamma;")
    [all...]

Completed in 400 milliseconds

1 2