Cognitoware.Robotics.dll

Class GlobalUniform<T>

System.Object

Cognitoware.Mathematics.Probability.RandomDistribution<T>

Cognitoware.Mathematics.Probability.Continuous.ContinuousDistribution<T>

Cognitoware.Mathematics.Probability.Continuous.GlobalUniform<T>

A distribution that has the same probability for all values in T.

GlobalUniform(Double)

Creats a GlobalUniform were evere value of T has probability of "value".

AliasAs()

Inherited from Cognitoware.Mathematics.Probability.RandomDistribution

Equals(Object)

Inherited from System.Object

Finalize()

Inherited from System.Object

GetEntropy(IEnumerable<T>)

Inherited from Cognitoware.Mathematics.Probability.RandomDistribution

GetHashCode()

Inherited from System.Object

GetType()

Inherited from System.Object

MemberwiseClone()

Inherited from System.Object

Returns value specified in the constructor.

Sample(Random)

Not implemented in GlobalUniform.

ToString()

Inherited from System.Object

This distribution is intented to be uniform across T.
However, if T were infinite ProbabilityOf would always return zero.
To get around very large domains, GlobalUniform is created with a single
value that it always returns for every single value of T.
The user is responsible for ensuring normalization of this distribution
or distributions that interact with this one.

public GlobalUniform(Double value)

Creats a GlobalUniform were evere value of T has probability of "value".

`value`

- The probability of all values in T.public override Double ProbabilityOf(T x)

Returns value specified in the constructor.

`x`

- The value whose probability is requested.The constant probability value

public override T Sample(Random select)

Implements the abstract method in RandomDistribution.
Throws NotImplementedException.