Public Member Functions | |
Histogram (IEnumerable< int > values, int maximum) | |
Generates a Histogram whcih contains maximum classes. | |
Histogram (IEnumerable< int > values) | |
Generates a Histogram and searches for the maximum values. | |
void | CreateEqualGrouping (int wantedTotalLength) |
reduces the histogramm to given number of classes, by shrinking them. this does not manipulate the original historgram values, so it can be called mulitple times | |
float | GetHistValueFor (int val) |
Returns the normalized value for the original histogram. | |
float | GetHistValueForGroup (int val) |
Returns the normalized value for a histogram, that was shrinked with CreateEqualGrouping(). | |
Properties | |
int | Maximum [get] |
maximum classes of original histogram | |
int | MaximumGroup [get] |
maximum classes of shrinked histogram |
Visualization::Common::Histogram::Histogram | ( | IEnumerable< int > | values, | |
int | maximum | |||
) | [inline] |
Generates a Histogram whcih contains maximum classes.
values | the values used for the histogram | |
maximum | the number of classes for the histogram |
Visualization::Common::Histogram::Histogram | ( | IEnumerable< int > | values | ) | [inline] |
Generates a Histogram and searches for the maximum values.
values | the values used for the histogram |
void Visualization::Common::Histogram::CreateEqualGrouping | ( | int | wantedTotalLength | ) | [inline] |
reduces the histogramm to given number of classes, by shrinking them. this does not manipulate the original historgram values, so it can be called mulitple times
wantedTotalLength | the number of classes |
float Visualization::Common::Histogram::GetHistValueFor | ( | int | val | ) | [inline] |
Returns the normalized value for the original histogram.
val | class number |
float Visualization::Common::Histogram::GetHistValueForGroup | ( | int | val | ) | [inline] |
Returns the normalized value for a histogram, that was shrinked with CreateEqualGrouping().
val | class number |
int Visualization::Common::Histogram::Maximum [get] |
maximum classes of original histogram
int Visualization::Common::Histogram::MaximumGroup [get] |
maximum classes of shrinked histogram