C# 클래스 NetworkCommsDotNet.Tools.CommsMath

A class used for math operations in NetworkComms.Net. Primarily used for load analysis.
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net 1 사용 예제들

공개 메소드들

메소드 설명
AddValue ( double value ) : void

Add a new value to the internal list

AddValue ( double value, double weight ) : void

Add a new value to the internal list

CalculateMean ( ) : double

Return the mean of the current list.

CalculateMean ( List localValues ) : double

Return the mean of the provided list of values

CalculateMean ( List localValues, List weights ) : double

Return the mean of the provided list of values

CalculateMean ( int lastNValues ) : double

Return the mean of the current list.

CalculateStdDeviation ( ) : double

Return the standard deviation of the current list.

CalculateStdDeviation ( List localValues ) : double

Return the standard deviation of the provided list of values

CalculateStdDeviation ( List localValues, List weights ) : double

Return the standard deviation of the provided list of values

CalculateStdDeviation ( int lastNValues ) : double

Return the standard deviation of the current list.

ClearList ( ) : void

Reset the value list

CommsMath ( ) : System

Create a new empty instance of CommsMath

CommsMath ( List initialValues, List initialWeights ) : System

Create a new empty instance of CommsMath

TrimList ( int maxCount ) : void

Trims the list to the provided maxCount. The most recently added items are preserved.

메소드 상세

AddValue() 공개 메소드

Add a new value to the internal list
public AddValue ( double value ) : void
value double The value to add
리턴 void

AddValue() 공개 메소드

Add a new value to the internal list
public AddValue ( double value, double weight ) : void
value double The value to add
weight double The weight to apply to the provided value
리턴 void

CalculateMean() 공개 메소드

Return the mean of the current list.
public CalculateMean ( ) : double
리턴 double

CalculateMean() 공개 정적인 메소드

Return the mean of the provided list of values
public static CalculateMean ( List localValues ) : double
localValues List Values for which a mean should be calculated
리턴 double

CalculateMean() 공개 정적인 메소드

Return the mean of the provided list of values
public static CalculateMean ( List localValues, List weights ) : double
localValues List Values for which a mean should be calculated
weights List The weights to apply to the corresponding values
리턴 double

CalculateMean() 공개 메소드

Return the mean of the current list.
public CalculateMean ( int lastNValues ) : double
lastNValues int If less than the number of items in the value list returns the mean of the lastNValues
리턴 double

CalculateStdDeviation() 공개 메소드

Return the standard deviation of the current list.
public CalculateStdDeviation ( ) : double
리턴 double

CalculateStdDeviation() 공개 정적인 메소드

Return the standard deviation of the provided list of values
public static CalculateStdDeviation ( List localValues ) : double
localValues List Values for which a standard deviation should be calculated
리턴 double

CalculateStdDeviation() 공개 정적인 메소드

Return the standard deviation of the provided list of values
public static CalculateStdDeviation ( List localValues, List weights ) : double
localValues List Values for which a standard deviation should be calculated
weights List The weights to apply to the corresponding values
리턴 double

CalculateStdDeviation() 공개 메소드

Return the standard deviation of the current list.
public CalculateStdDeviation ( int lastNValues ) : double
lastNValues int If less than the number of items in the value list returns the mean of the lastNValues
리턴 double

ClearList() 공개 메소드

Reset the value list
public ClearList ( ) : void
리턴 void

CommsMath() 공개 메소드

Create a new empty instance of CommsMath
public CommsMath ( ) : System
리턴 System

CommsMath() 공개 메소드

Create a new empty instance of CommsMath
public CommsMath ( List initialValues, List initialWeights ) : System
initialValues List
initialWeights List
리턴 System

TrimList() 공개 메소드

Trims the list to the provided maxCount. The most recently added items are preserved.
public TrimList ( int maxCount ) : void
maxCount int The maximum size of the list after being trimmed
리턴 void