Class Undirected
Provides useful factors for undirected models.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class Undirected
Methods
Linear(Int32, Int32, Double)
Implements a linear difference potential which has the value of exp( -|a-b|* logUnitCost ).
Declaration
public static void Linear(int a, int b, double logUnitCost)
Parameters
Type | Name | Description |
---|---|---|
Int32 | a | |
Int32 | b | |
Double | logUnitCost |
LinearTrunc(Int32, Int32, Double, Double)
Implements a truncated linear difference potential which has the value of exp( - min( |a-b|* logUnitCost, maxCost) ).
Declaration
public static void LinearTrunc(int a, int b, double logUnitCost, double maxCost)
Parameters
Type | Name | Description |
---|---|---|
Int32 | a | |
Int32 | b | |
Double | logUnitCost | |
Double | maxCost |
Potts(Boolean, Boolean, Double)
Implements an boolean Potts potential which has the value of 1 if a=b and exp(-logCost) otherwise.
Declaration
public static void Potts(bool a, bool b, double logCost)
Parameters
Type | Name | Description |
---|---|---|
Boolean | a | |
Boolean | b | |
Double | logCost |
Remarks
Potts(Int32, Int32, Double)
Implements an integer Potts potential which has the value of 1 if a=b and exp(-logCost) otherwise.
Declaration
public static void Potts(int a, int b, double logCost)
Parameters
Type | Name | Description |
---|---|---|
Int32 | a | |
Int32 | b | |
Double | logCost |