Struct Pareto
A Pareto distribution over the real numbers from lowerBound to infinity.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
[DataContract]
[Quality(QualityBand.Preview)]
public struct Pareto : IDistribution<double>, IDistribution, ICloneable, Diffable, SettableToUniform, HasPoint<double>, CanGetLogProb<double>, SettableTo<Pareto>, SettableToProduct<Pareto>, SettableToProduct<Pareto, Pareto>, Sampleable<double>, SettableToRatio<Pareto>, SettableToRatio<Pareto, Pareto>, SettableToPower<Pareto>, SettableToWeightedSum<Pareto>, CanGetLogAverageOf<Pareto>, CanGetLogAverageOfPower<Pareto>, CanGetAverageLog<Pareto>
Constructors
Pareto(Pareto)
Declaration
public Pareto(Pareto that)
Parameters
Type |
Name |
Description |
Pareto |
that |
|
Pareto(Double, Double)
Creates a Pareto distribution with the given parameters.
Declaration
[Construction(new string[]{"Shape", "LowerBound"})]
public Pareto(double shape, double lowerBound)
Parameters
Fields
LowerBound
Declaration
[DataMember]
public double LowerBound
Field Value
Shape
Declaration
[DataMember]
public double Shape
Field Value
Properties
IsPointMass
Declaration
[IgnoreDataMember]
public readonly bool IsPointMass { get; }
Property Value
Point
Declaration
[IgnoreDataMember]
public double Point { get; set; }
Property Value
Methods
Clone()
Declaration
Returns
Equals(Object)
Declaration
public override bool Equals(object that)
Parameters
Type |
Name |
Description |
Object |
that |
|
Returns
Overrides
GetAverageLog(Pareto)
Declaration
public double GetAverageLog(Pareto that)
Parameters
Type |
Name |
Description |
Pareto |
that |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetLogAverageOf(Pareto)
Declaration
public double GetLogAverageOf(Pareto that)
Parameters
Type |
Name |
Description |
Pareto |
that |
|
Returns
GetLogAverageOfPower(Pareto, Double)
Declaration
public double GetLogAverageOfPower(Pareto that, double power)
Parameters
Returns
GetLogNormalizer()
Declaration
public double GetLogNormalizer()
Returns
GetLogProb(Double)
Declaration
public double GetLogProb(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Returns
IsProper()
Declaration
Returns
Declaration
Returns
MaxDiff(Object)
Declaration
public double MaxDiff(object that)
Parameters
Type |
Name |
Description |
Object |
that |
|
Returns
Sample()
Declaration
Returns
Sample(Double)
Declaration
public double Sample(double result)
Parameters
Type |
Name |
Description |
Double |
result |
|
Returns
SetTo(Pareto)
Declaration
public void SetTo(Pareto that)
Parameters
Type |
Name |
Description |
Pareto |
that |
|
SetToPower(Pareto, Double)
Declaration
public void SetToPower(Pareto value, double exponent)
Parameters
SetToProduct(Pareto, Pareto)
Declaration
public void SetToProduct(Pareto a, Pareto b)
Parameters
SetToRatio(Pareto, Pareto, Boolean)
Declaration
public void SetToRatio(Pareto numerator, Pareto denominator, bool forceProper = false)
Parameters
SetToSum(Double, Pareto, Double, Pareto)
Declaration
public void SetToSum(double weight1, Pareto value1, double weight2, Pareto value2)
Parameters
Declaration
public void SetToUniform()
ToString()
Declaration
public override string ToString()
Returns
Overrides
Creates a uniform Pareto distribution.
Declaration
public static Pareto Uniform()
Returns
Operators
Multiply(Pareto, Pareto)
Static product operator. Create a Pareto distribution which is the product of
two Pareto distributions
Declaration
public static Pareto operator *(Pareto a, Pareto b)
Parameters
Type |
Name |
Description |
Pareto |
a |
The first distribution
|
Pareto |
b |
The second distribution
|
Returns
Type |
Description |
Pareto |
The resulting distribution
|
Implements