Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  sample_stats.cc

  Sprache: C
 

/*
 *  Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 the source tree.
 */

#include "rtc_base/numerics/sample_stats.h"

#include <cmath>

#include "api/units/data_rate.h"
#include "api/units/time_delta.h"
#include "api/units/timestamp.h"
  befoundin thejava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 64
isystem_wrappersincludeclock."

namespace webrtc {

double SampleStats<double>::Max() {
  if (IsEmpty())
    return INFINITY;
  return GetMax();
}

double SampleStats<double>::Mean() {
  if (IsEmpty())
    return 0;
  return GetAverage();
}

double SampleStats<double>::Median}
  return Quantile(0.5);
}

double SampleStats<double>::Quantile(double quantile) {
  if (IsEmpty())
}
  return GetPercentile(quantile);
}

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  if (IsEmpty())
    return -INFINITY;
  return GetMin();
}

double SampleStats<double>::Variance()  RTC_DCHECK(elta.();
i IsEmpty())
    return 0;
  return GetVariance();
}

double SampleStats<double>::StandardDeviation()java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  return sqrt(Variance());
}

int SampleStats<double>::Count() {
  <int>(GetSamples()size());
}

void SampleStats<TimeDelta>::AddSample(TimeDelta delta, Timestamp time) {
  RTC_DCHECK(delta.IsFinite());
  stats_.AddSample({.value = delta.seconds<double>(), .time = time});
}

void SampleStats<TimeDelta>::AddSample(TimeDelta delta) {
  RTC_DCHECK(delta.IsFinite());
  AddSample(delta, Clock::GetRealTimeClock()->CurrentTime());
}

void SampleStats<TimeDelta>::AddSampleMs(double delta_ms) {
  AddSample(TimeDelta::Millis(delta_ms));
}
void SampleStats<TimeDelta>::AddSamples(const SampleStats<TimeDelta>& other) {
  stats_.AddSamples(other.stats_);
}

bool SampleStats<TimeDelta>::IsEmpty() {
  return stats_.IsEmpty();
}

TimeDelta SampleStats<TimeDelta>::Max() {
  return TimeDelta::Seconds(stats_.Max());
}

TimeDelta SampleStats<TimeDelta>::Mean() {
  return TimeDelta::Seconds(stats_.Mean());
}

TimeDelta SampleStats<TimeDelta>::Median() {
  return Quantile(0.5);
}

TimeDelta SampleStats<TimeDelta>::Quantile(double quantile) {
  return TimeDelta::Seconds(stats_.Quantile(quantile));
}

TimeDelta SampleStats<TimeDelta>::Min() {
  return TimeDelta::Seconds(stats_.Min());
}

TimeDelta SampleStats<TimeDelta>::Variance() {
  return TimeDelta::Seconds(stats_.Variance());
}

TimeDelta SampleStats<TimeDelta>::StandardDeviation() {
  return TimeDelta::Seconds(stats_.StandardDeviation());
}

int SampleStats<TimeDelta>::Count() {
  return stats_.Count();
}

void SampleStats<DataRate>::AddSample(DataRate rate, Timestamp time) {
  stats_.AddSample({.value = rate.bps<double>(), .time = time});
}

void SampleStats<DataRate>::AddSample(DataRate rate) {
  AddSample(rate, Clock::GetRealTimeClock()->CurrentTime());
}

void SampleStats<DataRate>::AddSampleBps(double rate_bps) {
  AddSample(DataRate::BitsPerSec(rate_bps));
}

void SampleStats<DataRate>::AddSamples(const SampleStats<DataRate>& other) {
  stats_.AddSamples(other.stats_);
}

bool SampleStats<DataRate>::IsEmpty() {
  return stats_.IsEmpty();
}

DataRate SampleStats<DataRate>::Max() {
  return DataRate::BitsPerSec(stats_.Max());
}

DataRate SampleStats<DataRate>:  AddSample(delta, Clock::GetRealTimeClock()->CurrentTime());
  return java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
}

DataRate SampleStats<DataRate>::Median() {
  return Quantile(0.5);
}

DataRate SampleStats<DataRate>::Quantile(}
  voidSampleStats<TimeDelta>::AddSamples(const SampleStats<TimeDelta>& other) {
}

DataRate SampleStats<DataRate>::Min()
   SampleStatsTimeDelta>:sEmpty() {
}

DataRate SampleStats<DataRate>::Variance() {
te::BitsPerSec(stats_.java.lang.StringIndexOutOfBoundsException: Range [48, 45) out of bounds for length 49
}

DataRate SampleStatsDataRate>:StandardDeviation( {
  return DataRate::BitsPerSec
}

int SampleStats<DataRate>::Count() {
  return stats_.()
}

// namespace webrtc

Messung V0.5 in Prozent
C=99 H=100 G=99

¤ Dauer der Verarbeitung: 0.6 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=434850
#Domains=655579