Class Gate
Factors for handling gates.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
Methods
Cases(Boolean)
Declaration
public static bool[] Cases(bool b)
Parameters
Returns
CasesBool(Boolean, out Boolean, out Boolean)
Boolean cases factor expanded into elements
Declaration
public static void CasesBool(bool b, out bool case0, out bool case1)
Parameters
CasesInt(Int32, Int32)
Declaration
public static bool[] CasesInt(int i, int count)
Parameters
Type |
Name |
Description |
Int32 |
i |
index
|
Int32 |
count |
number of cases
|
Returns
Enter<T>(Boolean, T)
Declaration
public static T[] Enter<T>(bool selector, T value)
Parameters
Type |
Name |
Description |
Boolean |
selector |
|
T |
value |
|
Returns
Type Parameters
Enter<T>(Int32, T)
Declaration
public static T[] Enter<T>(int selector, T value)
Parameters
Type |
Name |
Description |
Int32 |
selector |
|
T |
value |
|
Returns
Type Parameters
EnterOne<T>(Int32, T, Int32)
Declaration
public static T EnterOne<T>(int selector, T value, int index)
Parameters
Type |
Name |
Description |
Int32 |
selector |
|
T |
value |
|
Int32 |
index |
|
Returns
Type Parameters
EnterPartial<T>(Boolean, T, Int32[])
Declaration
public static T[] EnterPartial<T>(bool selector, T value, int[] indices)
Parameters
Type |
Name |
Description |
Boolean |
selector |
|
T |
value |
|
Int32[] |
indices |
|
Returns
Type Parameters
EnterPartial<T>(Int32, T, Int32[])
Declaration
public static T[] EnterPartial<T>(int selector, T value, int[] indices)
Parameters
Type |
Name |
Description |
Int32 |
selector |
|
T |
value |
|
Int32[] |
indices |
|
Returns
Type Parameters
EnterPartialTwo<T>(Boolean, Boolean, T, Int32[])
Enter partial factor with two cases
Declaration
public static T[] EnterPartialTwo<T>(bool case0, bool case1, T value, int[] indices)
Parameters
Returns
Type Parameters
Exit<T>(Boolean[], T[])
Declaration
public static T Exit<T>(bool[] cases, T[] values)
Parameters
Type |
Name |
Description |
Boolean[] |
cases |
|
T[] |
values |
|
Returns
Type Parameters
ExitingVariable<T>(T, out T)
Declaration
[ParameterNames(new string[]{"Use", "Def", "Marginal"})]
public static T ExitingVariable<T>(T Def, out T Marginal)
Parameters
Type |
Name |
Description |
T |
Def |
|
T |
Marginal |
|
Returns
Type Parameters
ExitRandom<T>(Boolean[], T[])
Declaration
[ParameterNames(new string[]{"Exit", "cases", "values"})]
public static T ExitRandom<T>(bool[] cases, T[] values)
Parameters
Type |
Name |
Description |
Boolean[] |
cases |
|
T[] |
values |
|
Returns
Type Parameters
ExitRandomTwo<T>(Boolean, Boolean, T[])
Declaration
[ParameterNames(new string[]{"Exit", "cases", "values"})]
public static T ExitRandomTwo<T>(bool case0, bool case1, T[] values)
Parameters
Returns
Type Parameters
ExitTwo<T>(Boolean, Boolean, T[])
Exit factor with two cases
Declaration
public static T ExitTwo<T>(bool case0, bool case1, T[] values)
Parameters
Returns
Type Parameters
ReplicateExiting<T>(T, Int32)
Replicate an exiting variable
Declaration
[ParameterNames(new string[]{"Uses", "Def", "count"})]
public static T[] ReplicateExiting<T>(T Def, int count)
Parameters
Type |
Name |
Description |
T |
Def |
|
Int32 |
count |
|
Returns
Type Parameters