Méthode | Description | |
---|---|---|
GetRange ( double percent ) : IntRange |
Get range around median containing specified percentage of values. The method calculates range of stochastic variable, which summary probability comprises the specified percentage of histogram's hits. Sample usage: // create histogram Histogram histogram = new Histogram( new int[10] { 0, 0, 1, 3, 6, 8, 11, 0, 0, 0 } ); // get 50% range IntRange range = histogram.GetRange( 0.5 ); // show the range ([4, 6]) Console.WriteLine( "50% range = [" + range.Min + ", " + range.Max + "]" ); |
|
Histogram ( int values ) : System |
Initializes a new instance of the Histogram class. Indexes of the input array are treated as values of stochastic function, but array values are treated as "probabilities" (total amount of hits). |
|
Update ( ) : void |
Update statistical value of the histogram. The method recalculates statistical values of the histogram, like mean, standard deviation, etc., in the case if histogram's values were changed directly. The method should be called only in the case if histogram's values were retrieved through Values property and updated after that. |
public GetRange ( double percent ) : IntRange | ||
percent | double | Values percentage around median. |
Résultat | IntRange |
public Histogram ( int values ) : System | ||
values | int | Values of the histogram. |
Résultat | System |