Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
discrepancy.h File Reference
#include <algorithm>
#include <vector>
#include "ion/base/logging.h"
Include dependency graph for discrepancy.h:

Go to the source code of this file.

Classes

class  ion::analytics::SampleMapping
 Helper class for transforming samples between the time domain and the (unitless) normalized domain used for discrepancy calculation. More...
 
struct  ion::analytics::IntervalDiscrepancy
 Result of a discrepancy computation, including the value measured and the bounds of the interval where that value was measured. More...
 

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::analytics
 

Functions

template<class InputIterator >
std::vector< double > ion::analytics::NormalizeSamples (InputIterator first, InputIterator last, const SampleMapping &sample_mapping)
 Sorts a sequence of numbers and normalizes it to the range [0, 1] using the given sample_mapping. More...
 
template<class ContainerType >
std::vector< double > ion::analytics::NormalizeSamples (const ContainerType &samples, const SampleMapping &sample_mapping)
 Normalize all samples in a container. More...
 
template<class InputIterator >
IntervalDiscrepancy ion::analytics::Discrepancy (InputIterator first, InputIterator last)
 Computes the discrepancy of a sequence of numbers in the range [0,1]. More...
 
template<class ContainerType >
IntervalDiscrepancy ion::analytics::Discrepancy (const ContainerType &samples)
 Compute analytic discrepancy of entire container. More...
 
template<class RandomIt >
IntervalDiscrepancy ion::analytics::AbsoluteTimestampDiscrepancy (RandomIt first, RandomIt last)
 A discrepancy-based metric for measuring the irregularity of timestamps. More...
 
template<class ContainerType >
IntervalDiscrepancy ion::analytics::AbsoluteTimestampDiscrepancy (const ContainerType &timestamps)
 Compute absolute discrepancy of entire container analytically. More...