Class DistributionFileArray<T, DomainType>
A distribution over an array of type DomainType
, where each element is independent and has distribution of type T
, all stored in a file.
Inheritance
DistributionFileArray<T, DomainType>
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
[Quality(QualityBand.Experimental)]
public class DistributionFileArray<T, DomainType> : FileArray<T>, IArray<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, IDisposable, IDistribution<DomainType[]>, IDistribution, ICloneable, Diffable, SettableToUniform, HasPoint<DomainType[]>, CanGetLogProb<DomainType[]>, Sampleable<DomainType[]>, HasPoint<IList<DomainType>>, SettableTo<DistributionFileArray<T, DomainType>>, SettableToProduct<DistributionFileArray<T, DomainType>>, SettableToProduct<DistributionFileArray<T, DomainType>, DistributionFileArray<T, DomainType>>, SettableToRatio<DistributionFileArray<T, DomainType>>, SettableToRatio<DistributionFileArray<T, DomainType>, DistributionFileArray<T, DomainType>>, SettableToPower<DistributionFileArray<T, DomainType>>, SettableToWeightedSum<DistributionFileArray<T, DomainType>>, CanGetLogAverageOf<DistributionFileArray<T, DomainType>>, CanGetLogAverageOfPower<DistributionFileArray<T, DomainType>>, CanGetAverageLog<DistributionFileArray<T, DomainType>> where T : ICloneable, SettableTo<T>, SettableToProduct<T>, SettableToRatio<T>, SettableToPower<T>, SettableToWeightedSum<T>, CanGetLogAverageOf<T>, CanGetLogAverageOfPower<T>, CanGetAverageLog<T>, IDistribution<DomainType>, Sampleable<DomainType>
Type Parameters
Name |
Description |
T |
|
DomainType |
|
Constructors
DistributionFileArray(FileArray<DistributionFileArray<T, DomainType>>, Int32, Int32)
Declaration
public DistributionFileArray(FileArray<DistributionFileArray<T, DomainType>> parent, int index, int count)
Parameters
DistributionFileArray(String, Int32)
Declaration
public DistributionFileArray(string prefix, int count)
Parameters
DistributionFileArray(String, Int32, Func<Int32, T>)
Declaration
public DistributionFileArray(string prefix, int count, Func<int, T> init)
Parameters
Properties
IsPointMass
Declaration
[IgnoreDataMember]
public bool IsPointMass { get; }
Property Value
Point
Declaration
[IgnoreDataMember]
public DomainType[] Point { get; set; }
Property Value
Type |
Description |
DomainType[] |
|
Methods
Clone()
Declaration
public override object Clone()
Returns
Overrides
Microsoft.ML.Probabilistic.Collections.FileArray<T>.Clone()
GetAverageLog(DistributionFileArray<T, DomainType>)
Declaration
public double GetAverageLog(DistributionFileArray<T, DomainType> that)
Parameters
Returns
GetLogAverageOf(DistributionFileArray<T, DomainType>)
Declaration
public double GetLogAverageOf(DistributionFileArray<T, DomainType> that)
Parameters
Returns
GetLogAverageOfPower(DistributionFileArray<T, DomainType>, Double)
Declaration
public double GetLogAverageOfPower(DistributionFileArray<T, DomainType> that, double power)
Parameters
Returns
GetLogProb(DomainType[])
Declaration
public double GetLogProb(DomainType[] value)
Parameters
Type |
Name |
Description |
DomainType[] |
value |
|
Returns
Declaration
Returns
MaxDiff(Object)
Declaration
public double MaxDiff(object that)
Parameters
Type |
Name |
Description |
Object |
that |
|
Returns
Sample()
Declaration
public DomainType[] Sample()
Returns
Type |
Description |
DomainType[] |
|
Sample(DomainType[])
Declaration
public DomainType[] Sample(DomainType[] result)
Parameters
Type |
Name |
Description |
DomainType[] |
result |
|
Returns
Type |
Description |
DomainType[] |
|
SetTo(DistributionFileArray<T, DomainType>)
Declaration
public void SetTo(DistributionFileArray<T, DomainType> value)
Parameters
SetToPower(DistributionFileArray<T, DomainType>, Double)
Declaration
public void SetToPower(DistributionFileArray<T, DomainType> value, double exponent)
Parameters
SetToProduct(DistributionFileArray<T, DomainType>, DistributionFileArray<T, DomainType>)
Declaration
public void SetToProduct(DistributionFileArray<T, DomainType> a, DistributionFileArray<T, DomainType> b)
Parameters
SetToRatio(DistributionFileArray<T, DomainType>, DistributionFileArray<T, DomainType>, Boolean)
Declaration
public void SetToRatio(DistributionFileArray<T, DomainType> numerator, DistributionFileArray<T, DomainType> denominator, bool forceProper)
Parameters
SetToSum(Double, DistributionFileArray<T, DomainType>, Double, DistributionFileArray<T, DomainType>)
Declaration
public void SetToSum(double weight1, DistributionFileArray<T, DomainType> value1, double weight2, DistributionFileArray<T, DomainType> value2)
Parameters
Declaration
public void SetToUniform()
Explicit Interface Implementations
HasPoint<IList<DomainType>>.IsPointMass
Declaration
bool HasPoint<IList<DomainType>>.IsPointMass { get; }
Returns
HasPoint<IList<DomainType>>.Point
Declaration
IList<DomainType> HasPoint<IList<DomainType>>.Point { get; set; }
Returns
Type |
Description |
IList<DomainType> |
|
Implements
Extension Methods
IEnumerableExensions.ListZip<TFirst, TSecond, TThird, TFourth, TResult>(IList<TFirst>, IList<TSecond>, IList<TThird>, IList<TFourth>, Func<TFirst, TSecond, TThird, TFourth, TResult>)