Метод | Описание | |
---|---|---|
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 |
Return the mean of the provided list of values
|
|
CalculateMean ( List |
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 |
Return the standard deviation of the provided list of values
|
|
CalculateStdDeviation ( List |
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 |
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.
|
public AddValue ( double value ) : void | ||
value | double | The value to add |
Результат | void |
public AddValue ( double value, double weight ) : void | ||
value | double | The value to add |
weight | double | The weight to apply to the provided value |
Результат | void |
public static CalculateMean ( List |
||
localValues | List |
Values for which a mean should be calculated |
Результат | double |
public static CalculateMean ( List |
||
localValues | List |
Values for which a mean should be calculated |
weights | List |
The weights to apply to the corresponding values |
Результат | double |
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 |
public static CalculateStdDeviation ( List |
||
localValues | List |
Values for which a standard deviation should be calculated |
Результат | double |
public static CalculateStdDeviation ( List |
||
localValues | List |
Values for which a standard deviation should be calculated |
weights | List |
The weights to apply to the corresponding values |
Результат | double |
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 |
public CommsMath ( List |
||
initialValues | List |
|
initialWeights | List |
|
Результат | System |
public TrimList ( int maxCount ) : void | ||
maxCount | int | The maximum size of the list after being trimmed |
Результат | void |