C# Class NSoft.NFramework.Numerics.Histogram_Old

Datei anzeigen Open project: debop/NFramework

Public Methods

Method Description
AddData ( double d ) : void

Data 추가

Count ( int binNumber ) : int

지정된 구간의 갯수

Histogram_Old ( double BinBoundaries ) : System

생성자

Histogram_Old ( int numBins, double data ) : System

생성자

Histogram_Old ( int numBins, double minValue, double maxValue ) : System

생성자

Reset ( ) : void

히스토그램 결과를 모두 삭제한다.

StemLeaf ( int maxMark ) : string

Formats the contents of the Histogram into a simple acsii stem-leaf diagram.

If the bin boundaries are b0, b1, b2,...,bn-1, and the counts for these bins are c1, c2,...,cn, respectively, then the this method returns a string with the following format: Number SmallerCount: ***number SmallerCount [b0,b1): *****c1 [b1,b2): **********c2 [b2,b3): ***************c3 . . . [bn-2,bn-1]: *****cn Number LargerCount : *****number LargerCount. Where the number of '*'s is for a particular bin is equal to the count for that bin minus one.

ToString ( ) : string

Formats the contents of the Histogram into a string.

If the bin boundaries are b0, b1, b2,...,bn-1, and the counts for these bins are c1, c2,...,cn, respectively, then the this method returns a string with the following format: Number Smaller: number SmallerCount [b0,b1) : c1 [b1,b2) : c2 [b2,b3) : c3 . . . [bn-2,bn-1]: cn Number LargerCount : number LargerCount

Private Methods

Method Description
AddSortedData ( double data ) : void
CheckBinBoundary ( double boundaries ) : void
MakeBinBoundary ( int numBins, double minValue, double maxValue ) : void

Method Details

AddData() public method

Data 추가
public AddData ( double d ) : void
d double
return void

Count() public method

지정된 구간의 갯수
public Count ( int binNumber ) : int
binNumber int
return int

Histogram_Old() public method

생성자
public Histogram_Old ( double BinBoundaries ) : System
BinBoundaries double
return System

Histogram_Old() public method

생성자
public Histogram_Old ( int numBins, double data ) : System
numBins int 히스토그램의 막대 수
data double 변량
return System

Histogram_Old() public method

생성자
public Histogram_Old ( int numBins, double minValue, double maxValue ) : System
numBins int 히스토그램의 막대 수
minValue double 최소 값
maxValue double 최대 값
return System

Reset() public method

히스토그램 결과를 모두 삭제한다.
public Reset ( ) : void
return void

StemLeaf() public method

Formats the contents of the Histogram into a simple acsii stem-leaf diagram.
If the bin boundaries are b0, b1, b2,...,bn-1, and the counts for these bins are c1, c2,...,cn, respectively, then the this method returns a string with the following format: Number SmallerCount: ***number SmallerCount [b0,b1): *****c1 [b1,b2): **********c2 [b2,b3): ***************c3 . . . [bn-2,bn-1]: *****cn Number LargerCount : *****number LargerCount. Where the number of '*'s is for a particular bin is equal to the count for that bin minus one.
public StemLeaf ( int maxMark ) : string
maxMark int
return string

ToString() public method

Formats the contents of the Histogram into a string.
If the bin boundaries are b0, b1, b2,...,bn-1, and the counts for these bins are c1, c2,...,cn, respectively, then the this method returns a string with the following format: Number Smaller: number SmallerCount [b0,b1) : c1 [b1,b2) : c2 [b2,b3) : c3 . . . [bn-2,bn-1]: cn Number LargerCount : number LargerCount
public ToString ( ) : string
return string