Cognitoware.Robotics.dll

Class MixedDistribution<T>

System.Object

Cognitoware.Mathematics.Probability.RandomDistribution<T>

Cognitoware.Mathematics.Probability.MixedDistribution<T>

A RandomDistribution whose probability values are calculated from the weighted average of other distributions.

Add(RandomDistribution<T>, Double)

Adds a new distribution and weight to the mixed distribution.

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

Normalizes the weights of the mixed distribution.

Returns the probability of a specific value of T.

Sample(Random)

Not implemented in MixedDistribuion.

ToString()

Inherited from System.Object

A RandomDistribution whose probability values are calculated from the weighted average of other distributions.
The user is responsible for ensuring that the weights are normalized.

public MixedDistribution()

public void Add(RandomDistribution<T> p, Double weight)

Adds a new distribution and weight to the mixed distribution.

`p`

- The distribution to mix.`weight`

- The weight of the distribution.public void Normalize()

Traverses all of the distributions to sum the weights, then traverses them all
again to divide all of the weights by the total weight sum.

public override Double ProbabilityOf(T t)

Returns the probability of a specific value of T.
The probability of t is retrieved for each contained distribution and multiplied by the associated weight.
The sum of these products is returned.

`t`

- The value whose probability is returned.The probability of t.

public override T Sample(Random select)

This implementation throws NotImplementedException.