Foundation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ImProfilerHistogram Struct Reference

#include <ImGui.hpp>

Public Member Functions

 ImProfilerHistogram (size_t capacity, Allocator *alloc)
 
 ImProfilerHistogram (ImProfilerHistogram const &other)
 
 ImProfilerHistogram (ImProfilerHistogram &&other)
 
ImProfilerHistogramoperator= (ImProfilerHistogram const &)=delete
 
ImProfilerHistogramoperator= (ImProfilerHistogram &&)=delete
 
void push (unsigned data)
 
void clear ()
 
float variance () const
 
float stddev () const
 
void bin (Vector< unsigned > &bins, size_t binCount, bool logOrLinear)
 

Public Attributes

const size_t capacity
 
float mean = 0
 
float m2 = 0
 
size_t head = 0
 
Allocatorallocator
 
Vector< unsigned > samples
 
Vector< unsigned > sorted
 
unsigned mode = 0
 
unsigned median = 0
 
unsigned maxCount = 0
 

Constructor & Destructor Documentation

◆ ImProfilerHistogram() [1/3]

ImProfilerHistogram::ImProfilerHistogram ( size_t  capacity,
Allocator alloc 
)
inline

◆ ImProfilerHistogram() [2/3]

ImProfilerHistogram::ImProfilerHistogram ( ImProfilerHistogram const &  other)
inline

◆ ImProfilerHistogram() [3/3]

ImProfilerHistogram::ImProfilerHistogram ( ImProfilerHistogram &&  other)
inline

Member Function Documentation

◆ bin()

void ImProfilerHistogram::bin ( Vector< unsigned > &  bins,
size_t  binCount,
bool  logOrLinear 
)

◆ clear()

void ImProfilerHistogram::clear ( )
inline

◆ operator=() [1/2]

ImProfilerHistogram & ImProfilerHistogram::operator= ( ImProfilerHistogram &&  )
delete

◆ operator=() [2/2]

ImProfilerHistogram & ImProfilerHistogram::operator= ( ImProfilerHistogram const &  )
delete

◆ push()

void ImProfilerHistogram::push ( unsigned  data)

◆ stddev()

float ImProfilerHistogram::stddev ( ) const
inline

◆ variance()

float ImProfilerHistogram::variance ( ) const
inline

Member Data Documentation

◆ allocator

Allocator* ImProfilerHistogram::allocator

◆ capacity

const size_t ImProfilerHistogram::capacity

◆ head

size_t ImProfilerHistogram::head = 0

◆ m2

float ImProfilerHistogram::m2 = 0

◆ maxCount

unsigned ImProfilerHistogram::maxCount = 0

◆ mean

float ImProfilerHistogram::mean = 0

◆ median

unsigned ImProfilerHistogram::median = 0

◆ mode

unsigned ImProfilerHistogram::mode = 0

◆ samples

Vector<unsigned> ImProfilerHistogram::samples

◆ sorted

Vector<unsigned> ImProfilerHistogram::sorted

The documentation for this struct was generated from the following files: