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

1 2 3

  /external/webrtc/webrtc/modules/audio_processing/agc/
histogram.h 21 // This class implements the histogram of loudness with circular buffers so that
22 // the histogram tracks the last T seconds of the loudness.
23 class Histogram {
25 // Create a non-sliding Histogram.
26 static Histogram* Create();
28 // Create a sliding Histogram, i.e. the histogram represents the last
30 static Histogram* Create(int window_size);
31 ~Histogram();
36 // Reset the histogram, forget the past
    [all...]
agc.h 21 class Histogram;
51 rtc::scoped_ptr<Histogram> histogram_;
52 rtc::scoped_ptr<Histogram> inactive_histogram_;
histogram.cc 11 #include "webrtc/modules/audio_processing/agc/histogram.h"
61 Histogram::Histogram()
73 "histogram bin centers incorrect size");
76 Histogram::Histogram(int window_size)
87 Histogram::~Histogram() {}
89 void Histogram::Update(double rms, double activity_probaility) {
90 // If circular histogram is activated then remove the oldest entry
    [all...]
histogram_unittest.cc 13 #include "webrtc/modules/audio_processing/agc/histogram.h"
40 rtc::scoped_ptr<Histogram> hist_;
55 hist_.reset(Histogram::Create(buffer_size));
57 hist_.reset(Histogram::Create());
agc.cc 20 #include "webrtc/modules/audio_processing/agc/histogram.h"
36 histogram_(Histogram::Create(kNumAnalysisFrames)),
37 inactive_histogram_(Histogram::Create()) {
  /external/webrtc/webrtc/system_wrappers/source/
metrics_default.cc 12 // Default implementation of histogram methods for WebRTC clients that do not
18 Histogram* HistogramFactoryGetCounts(const std::string& name, int min, int max,
21 Histogram* HistogramFactoryGetEnumeration(const std::string& name,
25 Histogram* histogram_pointer, const std::string& name, int sample) {}
  /external/brotli/enc/
histogram_inc.h 8 /* template parameters: Histogram, DATA_SIZE, DataType */
12 typedef struct FN(Histogram) {
16 } FN(Histogram);
18 static BROTLI_INLINE void FN(HistogramClear)(FN(Histogram)* self) {
25 FN(Histogram)* array, size_t length) {
30 static BROTLI_INLINE void FN(HistogramAdd)(FN(Histogram)* self, size_t val) {
35 static BROTLI_INLINE void FN(HistogramAddVector)(FN(Histogram)* self,
42 static BROTLI_INLINE void FN(HistogramAddHistogram)(FN(Histogram)* self,
43 const FN(Histogram)* v) {
block_encoder_inc.h 10 #define HistogramType FN(Histogram)
  /external/webrtc/webrtc/system_wrappers/include/
metrics.h 23 // Histogram for counters.
26 // Histogram for enumerators.
37 // Histogram* webrtc::metrics::HistogramFactoryGetCounts(
40 // Histogram* webrtc::metrics::HistogramFactoryGetEnumeration(
43 // Histogram* histogram_pointer, const std::string& name, int sample);
62 // Macros for adding samples to a named histogram.
64 // Histogram for counters (exponentially spaced buckets).
105 // Histogram for percentage (evenly spaced buckets).
114 // Histogram for enumerators (evenly spaced buckets).
126 // The name of the histogram should not vary
    [all...]
  /system/update_engine/scripts/update_payload/
histogram_unittest.py 7 """Unit tests for histogram.py."""
12 import histogram
30 self.CompareToExpectedDefault(str(histogram.Histogram(
34 self.CompareToExpectedDefault(str(histogram.Histogram.FromCountDict(
38 self.CompareToExpectedDefault(str(histogram.Histogram.FromKeyList(
46 actual_str = str(histogram.Histogram([('Yes', 5), ('No', 1)], scale=5)
    [all...]
histogram.py 5 """Histogram generation tools."""
12 class Histogram(object):
13 """A histogram generating object.
16 ASCII histogram, including bars and percentage markers, and taking care of
19 in different formats into a histogram. Histogram generation is exported via
31 """Initialize a histogram object.
34 data: list of (key, count) pairs constituting the histogram
36 formatter: function used for formatting raw histogram values
47 """Takes a dictionary of counts and returns a histogram object
    [all...]
  /art/runtime/base/
histogram_test.cc 21 #include "histogram-inl.h"
26 // Histogram *hist(new Histogram("SimplePercentiles"));
37 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("MeanTest", 5));
55 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("VarianceTest", 5));
67 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("Percentile", 5));
68 Histogram<uint64_t>::CumulativeData data
    [all...]
histogram-inl.h 25 #include "histogram.h"
33 template <class Value> inline void Histogram<Value>::AddValue(Value value) {
43 template <class Value> inline void Histogram<Value>::AdjustAndAddValue(Value value) {
47 template <class Value> inline Histogram<Value>::Histogram(const char* name)
56 inline Histogram<Value>::Histogram(const char* name, Value initial_bucket_width,
67 inline void Histogram<Value>::GrowBuckets(Value new_max) {
89 template <class Value> inline size_t Histogram<Value>::FindBucket(Value val) const {
90 // Since this is only a linear histogram, bucket index can be found simply wit
    [all...]
histogram.h 26 // Creates a data histogram for a better understanding of statistical data.
27 // Histogram analysis goes beyond simple mean and standard deviation to provide
31 template <class Value> class Histogram {
37 friend class Histogram<Value>;
42 // Used by the cumulative timing logger to search the histogram set using for an existing split
44 explicit Histogram(const char* name);
46 Histogram(const char* name, Value initial_bucket_width, size_t max_buckets = 100);
100 // Add more buckets to the histogram to fill in a new value that exceeded
106 // Number of samples placed in histogram.
109 // histogram percentiles are. Grows adaptively when we hit max buckets
    [all...]
timing_logger.cc 24 #include "base/histogram-inl.h"
97 Histogram<uint64_t>* histogram; local
98 Histogram<uint64_t> dummy(label.c_str());
103 histogram = new Histogram<uint64_t>(label.c_str(), kInitialBucketSize, max_buckets);
104 histograms_.insert(histogram);
106 histogram = *it;
108 histogram->AddValue(delta_time);
113 bool operator()(const Histogram<uint64_t>* a, const Histogram<uint64_t>* b) const
    [all...]
  /frameworks/av/media/libnbaio/include/media/nbaio/
ReportPerformance.h 32 // stores a histogram: key: observed buffer period. value: count
34 using Histogram = std::map<int, int>;
58 std::deque<std::pair<timestamp, Histogram>> &hists,
PerformanceAnalysis.h 52 // When the short-term histogram array mRecentHists has reached capacity,
67 // runs analysis on timestamp series before it is converted to a histogram
96 std::deque<std::pair<timestamp, Histogram>> mRecentHists;
100 std::deque<std::pair<timestamp, Histogram>> mLongTermHists;
124 static const int kShortHistSize = 50; // number of samples in a short-term histogram
127 static const int kLongTermHistsCapacity = 20; // number of long-term histogram stored in memory
128 // maximum elapsed time between first and last timestamp of a long-term histogram
  /external/webrtc/webrtc/test/
histogram.cc 11 #include "webrtc/test/histogram.h"
20 // Test implementation of histogram methods in
33 // Map holding info about added samples to a histogram (mapped by the histogram
39 Histogram* HistogramFactoryGetCounts(const std::string& name, int min, int max,
46 return reinterpret_cast<Histogram*>(&it->second);
49 Histogram* HistogramFactoryGetEnumeration(const std::string& name,
56 return reinterpret_cast<Histogram*>(&it->second);
60 Histogram* histogram_pointer, const std::string& name, int sample) {
  /external/libchrome/base/metrics/
histogram_unittest.cc 5 #include "base/metrics/histogram.h"
31 // for histogram allocation. False will allocate histograms from the process
43 // Each test will have a clean state (no Histogram / BucketRanges
67 // By getting the results-histogram before any persistent allocator
68 // is attached, that histogram is guaranteed not to be stored in
99 HistogramBase* histogram = Histogram::FactoryGet( local
101 EXPECT_TRUE(histogram);
142 HistogramBase* histogram = LinearHistogram::FactoryGet( local
145 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples()
152 HistogramBase* histogram = local
181 HistogramBase* histogram = local
218 Histogram* histogram = static_cast<Histogram*>( local
259 Histogram* histogram = static_cast<Histogram*>( local
297 Histogram* histogram = static_cast<Histogram*>( local
346 Histogram* histogram = static_cast<Histogram*>( local
358 Histogram* histogram = static_cast<Histogram*>( local
381 Histogram* histogram = static_cast<Histogram*>( local
406 Histogram* histogram = static_cast<Histogram*>( local
453 Histogram* histogram = static_cast<Histogram*>( local
506 Histogram* histogram = static_cast<Histogram*>( local
541 Histogram* histogram = static_cast<Histogram*>( local
617 HistogramBase* histogram = Histogram::FactoryGet( local
    [all...]
histogram.cc 5 // Histogram is an object that aggregates statistics, and can summarize them in
10 #include "base/metrics/histogram.h"
51 DLOG(ERROR) << "Pickle error decoding Histogram: " << *histogram_name;
56 // checks above and beyond those in Histogram::Initialize()
62 DLOG(ERROR) << "Values error decoding Histogram: " << histogram_name;
66 // We use the arguments to find or create the local version of the histogram
73 bool ValidateRangeChecksum(const HistogramBase& histogram,
75 const Histogram& casted_histogram =
76 static_cast<const Histogram&>(histogram);
150 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name_); local
576 HistogramBase* histogram = Histogram::FactoryGet( local
763 LinearHistogram* histogram = static_cast<LinearHistogram*>(base_histogram); variable
922 HistogramBase* histogram = LinearHistogram::FactoryGet( local
1007 HistogramBase* histogram = BooleanHistogram::FactoryGet( local
1168 HistogramBase* histogram = CustomHistogram::FactoryGet( local
    [all...]
statistics_recorder_unittest.cc 53 // Each test will have a clean state (no Histogram / BucketRanges
80 Histogram* CreateHistogram(const std::string& name,
85 Histogram::InitializeBucketRanges(min, max, ranges);
88 return new Histogram(name, min, max, registered_ranges);
91 void DeleteHistogram(HistogramBase* histogram) {
92 delete histogram;
138 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); local
141 EXPECT_EQ(histogram,
142 StatisticsRecorder::RegisterOrDeleteDuplicate(histogram));
195 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); local
274 HistogramBase* histogram = Histogram::FactoryGet( local
323 HistogramBase* histogram = Histogram::FactoryGet( local
490 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local
517 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local
541 HistogramBase* histogram = Histogram::FactoryGet( local
620 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local
    [all...]
histogram_delta_serialization.cc 19 // Create or find existing histogram and add the samples from pickle.
22 HistogramBase* histogram = DeserializeHistogramInfo(iter); local
23 if (!histogram)
26 if (histogram->flags() & HistogramBase::kIPCSerializationSourceFlag) {
27 DVLOG(1) << "Single process mode, histogram observed and not copied: "
28 << histogram->histogram_name();
31 histogram->AddSamplesFromPickle(iter);
42 "Histogram.Inconsistencies" + caller_name, 1,
49 "Histogram.Inconsistencies" + caller_name + "Unique", 1,
55 Histogram::FactoryGet
    [all...]
histogram_base_unittest.cc 7 #include "base/metrics/histogram.h"
19 // Each test will have a clean state (no Histogram / BucketRanges
47 HistogramBase* histogram = Histogram::FactoryGet( local
53 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
57 EXPECT_EQ(histogram, deserialized);
64 EXPECT_NE(histogram, deserialized);
73 HistogramBase* histogram = LinearHistogram::FactoryGet( local
78 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
82 EXPECT_EQ(histogram, deserialized)
96 HistogramBase* histogram = BooleanHistogram::FactoryGet( local
123 HistogramBase* histogram = CustomHistogram::FactoryGet( local
145 HistogramBase* histogram = SparseHistogram::FactoryGet( local
    [all...]
  /frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
reduce_backward.rs 147 typedef uint32_t Histogram[BUCKETS];
149 static void hsgAccum(Histogram *h, uchar in) { ++(*h)[in]; }
151 static void hsgCombine(Histogram *accum, const Histogram *addend) {
156 #pragma rs reduce(histogram) \
159 static void modeOutConvert(int2 *result, const Histogram *h) {
  /frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Histogram.java 24 public class Histogram extends TestBase {
31 public Histogram(boolean useIntrisic) {

Completed in 1295 milliseconds

1 2 3