Microsoft Research, Cambridge
Assembly: Infer.Runtime (in Infer.Runtime.dll) Version: 2.5.30417.0 (2.5.30417.0)
Distribution interface
Namespace: MicrosoftResearch.Infer.DistributionsAssembly: Infer.Runtime (in Infer.Runtime.dll) Version: 2.5.30417.0 (2.5.30417.0)
Syntax
[Quality(QualityBand.Mature)] public interface IDistribution<T> : ICloneable, HasPoint<T>, Diffable, SettableToUniform, CanGetLogProb<T>
Type Parameters
- T
- The type of objects in the domain, e.g. Vector or Matrix.
Remarks
T should generally have value semantics, i.e. it should override Equals to use value equality. Otherwise it implies a Distribution over references.
In addition to this interface, Distributions should override Equals to use value equality. A typical implementation of Equals is: MaxDiff(that) == 0.0
To be generally used by message-passing algorithms, a distribution should also implement the following interfaces: SettableTo, SettableToProduct, SettableToRatio, SettableToPower, SettableToWeightedSum, CanGetLogAverageOf, CanGetAverageLog
See Also