HomeSort by relevance Sort by last modified time
    Searched defs:sample (Results 276 - 300 of 664) sorted by null

<<11121314151617181920>>

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
random.py 10 pick random sample
51 __all__ = ["Random","seed","random","uniform","randint","choice","sample",
290 def sample(self, population, k): member in class:Random
296 samples. This allows raffle winners (the sample) to be partitioned
301 selection in the sample.
303 To choose a sample in a range of integers, use xrange as an argument.
305 large population: sample(xrange(10000000), 60)
320 raise ValueError("sample larger than population")
348 return self.sample(tuple(population), k)
887 sample = _inst.sampl variable
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
random.py 10 pick random sample
51 __all__ = ["Random","seed","random","uniform","randint","choice","sample",
290 def sample(self, population, k): member in class:Random
296 samples. This allows raffle winners (the sample) to be partitioned
301 selection in the sample.
303 To choose a sample in a range of integers, use xrange as an argument.
305 large population: sample(xrange(10000000), 60)
320 raise ValueError("sample larger than population")
348 return self.sample(tuple(population), k)
887 sample = _inst.sampl variable
    [all...]
  /system/extras/simpleperf/
sample_tree.h 37 // 1. Build a SampleTree from SampleRecords with each sample containing
40 // 2. Sort the SampleTree by cpu-cycles in the sample. As we want to display the
42 // 3. Display the SampleTree, each sample prints its (cpu-cycles, function name)
53 // displays each sample in the SampleTree.
96 EntryT* sample = CreateSample(r, in_kernel, &acc_info); local
97 if (sample == nullptr) {
106 const ThreadEntry* thread = GetThreadOfSample(sample);
124 callchain.push_back(sample);
148 CreateCallChainSample(sample, ip, in_kernel, callchain, acc_info);
163 EntryT* sample = callchain[0] local
240 EntryT* sample = *it; local
    [all...]
  /system/update_engine/
Android.mk 798 # Sample images for unittests.
800 # Generate a prebuilt module that installs a sample image from the compressed
804 define ue-unittest-sample-image
817 $(call ue-unittest-sample-image,disk_ext2_1k.img)
818 $(call ue-unittest-sample-image,disk_ext2_4k.img)
819 $(call ue-unittest-sample-image,disk_ext2_4k_empty.img)
820 $(call ue-unittest-sample-image,disk_ext2_unittest.img)
    [all...]
  /packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
ExoPlayerSampleExtractor.java 61 * A class that extracts samples from a live broadcast stream while storing the sample on the disk.
445 SampleHolder sample = local
458 sample.timeUs = mDecoderInputBuffer.timeUs;
459 sample.size = mDecoderInputBuffer.data.position();
460 sample.ensureSpaceForWrite(sample.size);
462 sample.data.position(0);
463 sample.data.put(mDecoderInputBuffer.data);
464 sample.data.flip();
465 mPendingSamples.add(new Pair<>(index, sample));
    [all...]
  /device/google/contexthub/firmware/os/drivers/intersil_isl29034/
isl29034.c 281 // first sample yet, so a broadcast event will go out soon with the first sample
315 union EmbeddedDataPoint sample; local
361 DEBUG_PRINT("sample ready: als0=%u als1=%u\n", xfer->txrxBuf[0], xfer->txrxBuf[1]);
365 sample.fdata = getLuxFromAlsData(xfer->txrxBuf[0] | (xfer->txrxBuf[1] << 8));
366 if (mData.lastAlsSample.idata != sample.idata) {
367 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL);
368 mData.lastAlsSample.fdata = sample.fdata;
  /device/google/contexthub/firmware/os/drivers/si_si7034/
si7034a10.c 361 union EmbeddedDataPoint sample; local
398 sample.fdata = (float)value / 1000.0f;
400 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HUMIDITY), sample.vptr, NULL);
407 sample.fdata = (float)value / 1000.0f;
409 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_AMBIENT_TEMP), sample.vptr, NULL);
  /external/apache-commons-math/src/main/java/org/apache/commons/math/transform/
FastFourierTransformer.java 87 * @param n the number of sample points
96 double data[] = sample(f, min, max, n);
142 * @param n the number of sample points
152 double data[] = sample(f, min, max, n);
201 * @param n the number of sample points
211 double data[] = sample(f, min, max, n);
260 * @param n the number of sample points
270 double data[] = sample(f, min, max, n);
415 * Sample the given univariate real function on the given interval.
417 * The interval is divided equally into N sections and sample point
430 public static double[] sample(UnivariateRealFunction f, double min, double max, int n) method in class:FastFourierTransformer
    [all...]
  /external/deqp/framework/common/
tcuFuzzyImageCompare.cpp 253 deUint32 sample = bilinearSample<NumChannels>(surface, dx, dy); local
255 minDist = de::min(minDist, colorDistSquared(pixel, sample));
  /external/iproute2/misc/
rtacct.c 299 double sample; local
308 sample = (double)(incr*1000)/interval;
310 kern_db->rate[i] += W*(sample-kern_db->rate[i]);
313 kern_db->rate[i] = sample;
317 kern_db->rate[i] += w*(sample-kern_db->rate[i]);
  /external/llvm/tools/llvm-profdata/
llvm-profdata.cpp 56 // Hint for common error of forgetting -sample for sample profiles.
57 Hint = "Perhaps you forgot to use the -sample option?";
71 enum ProfileKinds { instr, sample }; enumerator in enum:__anon28223::ProfileKinds
281 clEnumVal(sample, "Sample profile"), clEnumValEnd));
287 "GCC encoding (only meaningful for -sample)"),
495 clEnumVal(sample, "Sample profile"), clEnumValEnd));
  /external/ltp/lib/
tst_timer_test.c 33 static int (*sample)(int clk_id, long long usec); variable
158 "%*uus | 1 sample = %.5f '*', %.5f '+', %.5f '-', non-zero '.'\n",
279 if (sample(CLOCK_MONOTONIC, usec)) {
437 "Invalid sample count '%s'", str_sample_cnt);
463 sample = timer_test->sample;
470 timer_test->sample = NULL;
  /external/mesa3d/src/gallium/drivers/r600/
r600_blit.c 114 unsigned layer, level, sample, checked_last_layer, max_layer, max_sample; local
157 for (sample = first_sample; sample <= last_sample; sample++) {
160 if (sample != rctx->db_misc_state.copy_sample) {
161 rctx->db_misc_state.copy_sample = sample;
177 util_blitter_custom_depth_stencil(rctx->blitter, zsurf, cbsurf, 1 << sample,
  /external/mesa3d/src/mesa/swrast/
s_triangle.c 273 GLchan sample[4]; /* the filtered texture sample */ local
283 sample[RCOMP] = tex00[2]; \
284 sample[GCOMP] = tex00[1]; \
285 sample[BCOMP] = tex00[0]; \
286 sample[ACOMP] = CHAN_MAX;
289 sample[RCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\
290 sample[GCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\
291 sample[BCOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);\
292 sample[ACOMP] = CHAN_MAX
610 GLchan sample[4]; \/* the filtered texture sample *\/ local
    [all...]
  /external/opencv/ml/src/
mlrtrees.cpp 312 // oob_predictions_sum[i] = sum of predicted values for the i-th sample
314 // (number of predictions for the i-th sample)
333 // = sum of predicted values for the i-th sample
335 // = number of summands (number of predictions for the i-th sample)
361 CvMat sample, missing; local
365 for( i = 0; i < nsamples; i++ ) //form sample for creation one tree
377 sample = cvMat( 1, dims, CV_32FC1, samples_ptr );
382 sample.data.fl += dims, missing.data.ptr += dims )
385 // check if the sample is OOB
391 CV_CALL(predicted_node = tree->predict(&sample, &missing, true))
    [all...]
  /external/perf_data_converter/src/
perf_data_handler.cc 89 // Normalize the sample_event in event_proto and call handler_->Sample
107 // Returns the event index corresponding to the id for this sample, or
110 const quipper::PerfDataProto_SampleEvent& sample) const;
120 // The event for a given sample is determined by the id.
207 quipper::PerfDataProto::SampleEvent sample; local
209 sample.set_id(event_proto.lost_event().id());
210 sample.set_pid(event_proto.lost_event().sample_info().pid());
211 sample.set_tid(event_proto.lost_event().sample_info().tid());
212 PerfDataHandler::SampleContext context(header, sample);
213 context.file_attrs_index = GetEventIndexForSample(sample);
235 const auto& sample = event_proto.sample_event(); local
    [all...]
  /external/skia/tools/skpbench/
skpbench.cpp 46 DEFINE_int32(sampleMs, 50, "minimum duration of a sample");
60 struct Sample {
63 Sample() : fFrames(0), fDuration(0) {}
103 const SkPicture* skp, std::vector<Sample>* samples) {
105 const Sample::duration sampleDuration = std::chrono::milliseconds(FLAGS_sampleMs);
120 Sample& sample = samples->back(); local
127 sample.fDuration = now - sampleStart;
128 ++sample.fFrames;
129 } while (sample.fDuration < sampleDuration)
160 Sample& sample = samples->back(); local
    [all...]
  /external/skqp/tools/skpbench/
skpbench.cpp 46 DEFINE_int32(sampleMs, 50, "minimum duration of a sample");
60 struct Sample {
63 Sample() : fFrames(0), fDuration(0) {}
103 const SkPicture* skp, std::vector<Sample>* samples) {
105 const Sample::duration sampleDuration = std::chrono::milliseconds(FLAGS_sampleMs);
120 Sample& sample = samples->back(); local
127 sample.fDuration = now - sampleStart;
128 ++sample.fFrames;
129 } while (sample.fDuration < sampleDuration)
160 Sample& sample = samples->back(); local
    [all...]
  /external/tensorflow/tensorflow/core/kernels/
word2vec_kernels.cc 300 // sample. We reserve 8 values per sample just in case the
333 const int sample = sampler_->Sample(&srnd); variable
334 if (sample == label) continue; // Skip.
335 auto v_sample = Tw_out.chip<0>(sample);
  /external/tensorflow/tensorflow/python/ops/distributions/
distribution.py 63 "sample",
215 sample results in a `stop_gradients` call and instead use policy
291 `log_prob` reflect this broadcasting, as does the return value of `sample` and
319 # Sampling returns a sample per distribution. `samples` has shape
426 """Shapes of parameters given the desired shape of a call to `sample()`.
430 returned for that instance's call to `sample()`.
436 `sample()`.
451 returned for that instance's call to `sample()`. Assumes that the sample's
459 to `sample()`
675 def sample(self, sample_shape=(), seed=None, name="sample"): member in class:Distribution
    [all...]
  /external/webrtc/webrtc/modules/audio_coding/acm2/
audio_coding_module_impl.cc 66 int16_t sample = frame.data_[i]; local
67 out_buff[2 * i + 1] = sample;
68 out_buff[2 * i] = sample;
684 // GetAudio always returns 10 ms, at the requested sample rate.
  /external/webrtc/webrtc/modules/audio_processing/agc/legacy/
analog_agc.c 118 int32_t nrg, max_nrg, sample, tmp32; local
171 sample = (in_mic[j][i] * gain) >> 12;
172 if (sample > 32767)
175 } else if (sample < -32768)
180 in_mic[j][i] = (int16_t)sample;
    [all...]
  /frameworks/native/cmds/flatland/
Main.cpp 607 // The slowest 1/outlierFraction sample results are ignored as potential
650 double sample = double(r.run(warmUpFrames, totalFrames)); local
656 if (sample < 0.0) {
661 samples.add(sample);
  /packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
RecordingSampleBuffer.java 161 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable)
163 mSampleChunkIoHelper.writeSample(index, sample, conditionVariable);
214 SampleHolder sample = mSampleChunkIoHelper.readSample(index); local
215 if (sample != null) {
216 queue.queueSample(sample);
253 // No sample has been queued.
  /system/extras/boottime_tools/bootio/
bootio_collector.cpp 66 int ReadIo(char *filename, AppSample *sample) {
82 sample->set_rchar(rchar);
83 sample->set_wchar(wchar);
84 sample->set_syscr(syscr);
85 sample->set_syscw(syscw);
86 sample->set_readbytes(readbytes);
87 sample->set_writebytes(writebytes);
112 int ReadStat(char *filename, AppSample *sample) {
139 sample->set_utime(utime);
140 sample->set_stime(stime)
191 AppSample *sample = data->add_samples(); local
    [all...]

Completed in 965 milliseconds

<<11121314151617181920>>