Class Distribution
Assembly: TowseyLibrary.dll
Syntax
public class Distribution
Constructors
|
Improve this Doc
View Source
Distribution(Double[], Double, Double, Double, Boolean)
Declaration
public Distribution(double[] values, double min, double max, double binWidth, bool regularise)
Parameters
|
Improve this Doc
View Source
Distribution(Int32, Int32)
Initializes a new instance of the Distribution class.
CONSTRUCTOR
The minimum integer is assumed to be zero.
Declaration
public Distribution(int binCount, int binWidth)
Parameters
Type |
Name |
Description |
Int32 |
binCount |
|
Int32 |
binWidth |
|
|
Improve this Doc
View Source
Distribution(Int32[], Int32)
Declaration
public Distribution(int[] values, int max)
Parameters
|
Improve this Doc
View Source
Distribution(Int32[], Int32, Boolean)
Declaration
public Distribution(int[] values, int max, bool regularise)
Parameters
Methods
|
Improve this Doc
View Source
addNegativeValue(Int32)
Declaration
public void addNegativeValue(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
|
Improve this Doc
View Source
addPositiveValue(Int32)
Declaration
public void addPositiveValue(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
|
Improve this Doc
View Source
addValue(Int32)
Declaration
public void addValue(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
|
Improve this Doc
View Source
calculateIC()
calculates the information content.
Declaration
public void calculateIC()
|
Improve this Doc
View Source
calculateIC(Double[])
Declaration
public double[] calculateIC(double[] p)
Parameters
Type |
Name |
Description |
Double[] |
p |
|
Returns
|
Improve this Doc
View Source
getDistribution()
Declaration
public int[] getDistribution()
Returns
|
Improve this Doc
View Source
getExpectedIC()
Declaration
public double getExpectedIC()
Returns
|
Improve this Doc
View Source
getInfoDistribution()
Declaration
public double[] getInfoDistribution()
Returns
|
Improve this Doc
View Source
getLogProbability(Int32)
Declaration
public double getLogProbability(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
Returns
|
Improve this Doc
View Source
getLogProbability(Int32, Int32)
Declaration
public double getLogProbability(int start, int end)
Parameters
Returns
|
Improve this Doc
View Source
getMax()
Declaration
Returns
|
Improve this Doc
View Source
getMaxIndex()
Declaration
Returns
|
Improve this Doc
View Source
getMin()
Declaration
Returns
|
Improve this Doc
View Source
getMinIndex()
Declaration
Returns
|
Improve this Doc
View Source
getNormalisedDistribution()
Declaration
public double[] getNormalisedDistribution()
Returns
|
Improve this Doc
View Source
getProbability(Int32)
Declaration
public double getProbability(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
Returns
|
Improve this Doc
View Source
getProbability(Int32, Int32)
Declaration
public double getProbability(int start, int end)
Parameters
Returns
|
Improve this Doc
View Source
getProbDistribution()
Declaration
public double[] getProbDistribution()
Returns
|
Improve this Doc
View Source
getSum()
Declaration
Returns
|
Improve this Doc
View Source
getSum(Double[])
Declaration
public static double getSum(double[] values)
Parameters
Type |
Name |
Description |
Double[] |
values |
|
Returns
|
Improve this Doc
View Source
getTotalIC()
Declaration
public double getTotalIC()
Returns
|
Improve this Doc
View Source
getValueCount()
Declaration
public int getValueCount()
Returns
|
Improve this Doc
View Source
main(String[])
Declaration
public static void main(string[] args)
Parameters
Type |
Name |
Description |
String[] |
args |
|
|
Improve this Doc
View Source
normalise(Double[])
Declaration
public static double[] normalise(double[] values)
Parameters
Type |
Name |
Description |
Double[] |
values |
|
Returns
|
Improve this Doc
View Source
regulariseDistribution(Double[])
Declaration
public static double[] regulariseDistribution(double[] values)
Parameters
Type |
Name |
Description |
Double[] |
values |
|
Returns
|
Improve this Doc
View Source
writeIC()
Declaration
Extension Methods