/external/eigen/doc/snippets/ |
LLT_solve.cpp | 2 // let's generate some samples on the 3D plane of equation z = 2x+3y (with some noise) 3 DataMatrix samples = DataMatrix::Random(12,2); variable 4 VectorXf elevations = 2*samples.col(0) + 3*samples.col(1) + VectorXf::Random(12)*0.1; 5 // and let's solve samples * [x y]^T = elevations in least square sense: 7 = (samples.adjoint() * samples).llt().solve((samples.adjoint()*elevations));
|
/external/libvpx/libvpx/vp9/encoder/ |
vp9_psnr.h | 15 double vp9_mse2psnr(double samples, double peak, double mse);
|
vp9_psnr.c | 17 double vp9_mse2psnr(double samples, double peak, double mse) { 21 psnr = 10.0 * log10(peak * peak * samples / mse);
|
/external/jmonkeyengine/engine/src/test/jme3test/network/ |
MovingAverage.java | 38 private long[] samples; field in class:MovingAverage 43 samples = new long[numSamples]; 47 sum = sum - samples[index] + sample; 48 samples[index++] = sample; 52 if (index >= samples.length){
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MultisetIteratorTester.java | 42 Arrays.asList(samples.e0, samples.e1, samples.e1, samples.e2)), 46 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) 55 new IteratorTester<E>(4, IteratorFeature.MODIFIABLE, Arrays.asList(samples.e0, samples.e1 [all...] |
AbstractMultisetTester.java | 36 getSubjectGenerator().create(samples.e0, samples.e0, samples.e0);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
ListAddAllTester.java | 41 getList().addAll(MinimalCollection.of(samples.e0))); 42 expectAdded(samples.e0); 49 getList().addAll(MinimalCollection.of(samples.e0)); 59 = MinimalCollection.of(samples.e0, samples.e1, samples.e0, samples.e1); 62 expectAdded(samples.e0, samples.e1, samples.e0, samples.e1) [all...] |
SetAddAllTester.java | 41 getSet().addAll(MinimalCollection.of(samples.e3, samples.e0))); 42 expectAdded(samples.e3); 48 = MinimalCollection.of(samples.e3, samples.e4, samples.e3, samples.e4); 51 expectAdded(samples.e3, samples.e4); 58 getSet().addAll(MinimalCollection.of(samples.e0))) [all...] |
ListAddAtIndexTester.java | 44 getList().add(0, samples.e0); 45 expectAdded(0, samples.e0); 56 getList().add(0, samples.e0); 65 getList().add(0, samples.e3); 66 expectAdded(0, samples.e3); 72 getList().add(0, samples.e3); 77 expectMissing(samples.e3); 83 getList().add(getNumElements() / 2, samples.e3); 84 expectAdded(getNumElements() / 2, samples.e3); 90 getList().add(getNumElements(), samples.e3) [all...] |
/prebuilts/tools/common/easymock-tools/ |
easymock-3.1-samples.jar | |
/external/chromium_org/tools/perf/metrics/ |
statistics_unittest.py | 11 def Relax(samples, iterations=10): 18 for i in xrange(1, len(samples)): 19 voronoi_boundaries.append((samples[i] + samples[i-1]) * 0.5) 22 relaxed_samples.append(samples[0]) 23 for i in xrange(1, len(samples)-1): 26 relaxed_samples.append(samples[-1]) 27 samples = relaxed_samples 28 return samples 34 samples = [ [all...] |
statistics.py | 16 def NormalizeSamples(samples): 17 """Sorts the samples, and map them linearly to the range [0,1]. 19 They're mapped such that for the N samples, the first sample is 0.5/N and the 28 if not samples: 29 return samples, 1.0 30 samples = sorted(samples) 31 low = min(samples) 32 high = max(samples) 33 new_low = 0.5 / len(samples) [all...] |
/external/chromium_org/chrome/browser/spellchecker/ |
spellcheck_host_metrics_unittest.cc | 55 scoped_ptr<HistogramSamples> samples(histogram->SnapshotSamples()); 57 samples->Subtract(*baseline); 58 EXPECT_EQ(1, samples->GetCount(0)); 59 EXPECT_EQ(0, samples->GetCount(1)); 61 baseline.reset(samples.release()); 68 samples = histogram->SnapshotSamples(); 69 samples->Subtract(*baseline); 70 EXPECT_EQ(0, samples->GetCount(0)); 71 EXPECT_EQ(1, samples->GetCount(1)); 95 scoped_ptr<HistogramSamples> samples = histogram->SnapshotSamples() local 129 scoped_ptr<HistogramSamples> samples[arraysize(histogramName)]; local [all...] |
/frameworks/opt/net/voip/src/jni/rtp/ |
GsmCodec.cpp | 46 int encode(void *payload, int16_t *samples); 47 int decode(int16_t *samples, int count, void *payload, int length); 54 int GsmCodec::encode(void *payload, int16_t *samples) 56 gsm_encode(mEncode, samples, (unsigned char *)payload); 60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) 65 gsm_decode(mDecode, bytes, &samples[n]) == 0) {
|
AudioCodec.h | 31 virtual int encode(void *payload, int16_t *samples) = 0; 32 // Returns the number of decoded samples. 33 virtual int decode(int16_t *samples, int count, void *payload, int length) = 0;
|
G711Codec.cpp | 41 int encode(void *payload, int16_t *samples); 42 int decode(int16_t *samples, int count, void *payload, int length); 47 int UlawCodec::encode(void *payload, int16_t *samples) 51 int sample = samples[i]; 67 int UlawCodec::decode(int16_t *samples, int count, void *payload, int length) 78 samples[i] = (ulaw < 0 ? -sample : sample); 92 int encode(void *payload, int16_t *samples); 93 int decode(int16_t *samples, int count, void *payload, int length); 98 int AlawCodec::encode(void *payload, int16_t *samples) 102 int sample = samples[i] [all...] |
/cts/suite/audio_quality/lib/include/audio/ |
AudioSignalFactory.h | 31 int maxPositive, AudioHardware::SamplingRate samplingRate, int signalFreq, int samples, 34 int maxPositive, int samples, bool stereo = true); 36 int samples, bool stereo = true);
|
/external/oprofile/libpp/ |
populate.h | 22 populate_for_image(profile_container & samples, inverted_profile const & ip,
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
ImageConstants.java | 17 package androidx.media.filterfw.samples.simplecamera;
|
/cts/suite/audio_quality/test/ |
AudioSignalFactoryTest.cpp | 26 AudioHardware::SamplingRate samplingRate, int signalFreq, int samples) { 27 ASSERT_TRUE(buffer->getSize() == (unsigned int)(AudioHardware::E2BPS * 2 * samples)); 29 for(int i = 0; i < samples; i++) { 43 const int samples = 8192 * 10; local 45 maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); 46 testSignalBasic(buffer, maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); 52 const int samples = 8192 * 10; local 54 maxPositive, samples); 55 testSignalBasic(buffer, maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples);
|
/external/chromium_org/base/metrics/ |
sample_vector_unittest.cc | 24 SampleVector samples(&ranges); 26 samples.Accumulate(1, 200); 27 samples.Accumulate(2, -300); 28 EXPECT_EQ(-100, samples.GetCountAtIndex(0)); 30 samples.Accumulate(5, 200); 31 EXPECT_EQ(200, samples.GetCountAtIndex(1)); 33 EXPECT_EQ(600, samples.sum()); 34 EXPECT_EQ(100, samples.redundant_count()); 35 EXPECT_EQ(samples.TotalCount(), samples.redundant_count()) [all...] |
sample_map_unittest.cc | 13 SampleMap samples; local 15 samples.Accumulate(1, 100); 16 samples.Accumulate(2, 200); 17 samples.Accumulate(1, -200); 18 EXPECT_EQ(-100, samples.GetCount(1)); 19 EXPECT_EQ(200, samples.GetCount(2)); 21 EXPECT_EQ(300, samples.sum()); 22 EXPECT_EQ(100, samples.TotalCount()); 23 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()) 58 SampleMap samples; local 101 SampleMap samples; local [all...] |
/development/build/ |
sdk.atree | 202 frameworks/base/docs/docs-samples-redirect.html docs/samples/index.html 206 # Samples Component 209 # samples to include in the sdk samples package 211 # the list here should match the list of samples that we generate docs for, 213 development/apps/GestureBuilder samples/${PLATFORM_NAME}/legacy/GestureBuilder 214 development/samples/samples_source.properties samples/${PLATFORM_NAME}/source.properties 216 # PLEASE KEEP THE SAMPLES IN ALPHABETICAL ORDER [all...] |
/external/chromium_org/chrome/test/base/ |
uma_histogram_helper.cc | 41 scoped_ptr<base::HistogramSamples> samples(histogram->SnapshotSamples()); 42 CheckBucketCount(name, sample, expected_count, *samples); 43 CheckTotalCount(name, expected_count, *samples); 56 scoped_ptr<base::HistogramSamples> samples(histogram->SnapshotSamples()); 57 CheckTotalCount(name, count, *samples); 69 base::HistogramSamples& samples) { 70 EXPECT_EQ(expected_count, samples.GetCount(sample)) 72 << "\" does not have the right number of samples (" << expected_count 79 base::HistogramSamples& samples) { 80 EXPECT_EQ(expected_count, samples.TotalCount() [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
OneSizeGenerator.java | 50 public SampleElements<E> samples() { method in class:OneSizeGenerator 51 return generator.samples(); 73 SampleElements<E> samples = samples(); local 76 samples.e0, samples.e1, samples.e2, samples.e3, samples.e4);
|