C# 클래스 Accord.Math.ContinuousHistogram

파일 보기 프로젝트 열기: accord-net/framework

공개 메소드들

메소드 설명
ContinuousHistogram ( int values, Range range ) : System

Initializes a new instance of the ContinuousHistogram class.

Values of the integer array are treated as total amount of hits on the corresponding subranges, which are calculated by splitting the specified range into required amount of consequent ranges (see ContinuousHistogram class description for more information).

GetRange ( float percent ) : Accord.Range

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 ContinuousHistogram histogram = new ContinuousHistogram( new int[] { 0, 0, 8, 4, 2, 4, 7, 1, 0 }, new Range( 0.0f, 1.0f ) ); // get 50% range Range range = histogram.GetRange( 0.5f ); // show the range ([0.25, 0.75]) Console.WriteLine( "50% range = [" + range.Min + ", " + range.Max + "]" );
Update ( ) : void

Update statistical value of the histogram.

The method recalculates statistical values of the histogram, like mean, standard deviation, etc. The method should be called only in the case if histogram values were retrieved through Values property and updated after that.

메소드 상세

ContinuousHistogram() 공개 메소드

Initializes a new instance of the ContinuousHistogram class.
Values of the integer array are treated as total amount of hits on the corresponding subranges, which are calculated by splitting the specified range into required amount of consequent ranges (see ContinuousHistogram class description for more information).
public ContinuousHistogram ( int values, Range range ) : System
values int Values of the histogram.
range Range Range of random values.
리턴 System

GetRange() 공개 메소드

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 ContinuousHistogram histogram = new ContinuousHistogram( new int[] { 0, 0, 8, 4, 2, 4, 7, 1, 0 }, new Range( 0.0f, 1.0f ) ); // get 50% range Range range = histogram.GetRange( 0.5f ); // show the range ([0.25, 0.75]) Console.WriteLine( "50% range = [" + range.Min + ", " + range.Max + "]" );
public GetRange ( float percent ) : Accord.Range
percent float Values percentage around median.
리턴 Accord.Range

Update() 공개 메소드

Update statistical value of the histogram.
The method recalculates statistical values of the histogram, like mean, standard deviation, etc. The method should be called only in the case if histogram values were retrieved through Values property and updated after that.
public Update ( ) : void
리턴 void