Class Clone
Contains factor methods for cloning.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Quality(QualityBand.Stable)]
public static class Clone
Methods
Copy<T>(T)
Passes the input through to the output.
Declaration
public static T Copy<T>(T value)
Parameters
Type |
Name |
Description |
T |
value |
The value to return.
|
Returns
Type |
Description |
T |
The supplied value.
|
Type Parameters
Name |
Description |
T |
The type of array element
|
DerivedVariable<T>(T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "marginal"})]
public static T DerivedVariable<T>(T def, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
marginal |
|
Returns
Type Parameters
DerivedVariableGibbs<T>(T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "marginal"})]
public static T DerivedVariableGibbs<T>(T def, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
marginal |
|
Returns
Type Parameters
DerivedVariableInit<T>(T, T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "init", "marginal"})]
public static T DerivedVariableInit<T>(T def, T init, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
init |
|
T |
marginal |
|
Returns
Type Parameters
DerivedVariableInitGibbs<T>(T, T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "init", "marginal"})]
public static T DerivedVariableInitGibbs<T>(T def, T init, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
init |
|
T |
marginal |
|
Returns
Type Parameters
DerivedVariableInitVmp<T>(T, T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "init", "marginal"})]
public static T DerivedVariableInitVmp<T>(T def, T init, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
init |
|
T |
marginal |
|
Returns
Type Parameters
DerivedVariableVmp<T>(T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "marginal"})]
public static T DerivedVariableVmp<T>(T def, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
marginal |
|
Returns
Type Parameters
Replicate<T>(T, Int32)
Create an array filled with a single value. For reference types,
the replicates all reference the same instance
Declaration
[ParameterNames(new string[]{"Uses", "Def", "Count"})]
public static T[] Replicate<T>(T value, int count)
Parameters
Type |
Name |
Description |
T |
value |
The value to fill with.
|
Int32 |
count |
Number of replicates
|
Returns
Type |
Description |
T[] |
A new array with all entries set to value.
|
Type Parameters
Name |
Description |
T |
The type of array element
|
ReplicateNd<T>(T)
Create a multidimensional array filled with a single value.
Declaration
[ParameterNames(new string[]{"Uses", "Def"})]
public static Array ReplicateNd<T>(T value)
Parameters
Type |
Name |
Description |
T |
value |
The value to fill with.
|
Returns
Type |
Description |
Array |
A new array with all entries set to value.
|
Type Parameters
Name |
Description |
T |
The type of array element
|
ReplicateWithMarginal<T>(T, Int32, out T)
Create an array filled with a single value.
Declaration
[ParameterNames(new string[]{"Uses", "Def", "count", "Marginal"})]
public static T[] ReplicateWithMarginal<T>(T Def, int count, out T Marginal)
Parameters
Type |
Name |
Description |
T |
Def |
The value to fill with.
|
Int32 |
count |
|
T |
Marginal |
Dummy argument for inferring marginals.
|
Returns
Type |
Description |
T[] |
A new array with all entries set to value.
|
Type Parameters
Name |
Description |
T |
The type of array element
|
ReplicateWithMarginalGibbs<T>(T, Int32, Int32, Int32, out T, out T, out T)
Declaration
[ParameterNames(new string[]{"Uses", "Def", "count", "burnIn", "thin", "marginal", "samples", "conditionals"})]
public static T[] ReplicateWithMarginalGibbs<T>(T Def, int count, int burnIn, int thin, out T marginal, out T samples, out T conditionals)
Parameters
Type |
Name |
Description |
T |
Def |
|
Int32 |
count |
|
Int32 |
burnIn |
|
Int32 |
thin |
|
T |
marginal |
|
T |
samples |
|
T |
conditionals |
|
Returns
Type Parameters
UsesEqualDef<T>(T, Int32, out T)
Create an array filled with a single value.
Declaration
[ParameterNames(new string[]{"Uses", "Def", "count", "Marginal"})]
public static T[] UsesEqualDef<T>(T Def, int count, out T Marginal)
Parameters
Type |
Name |
Description |
T |
Def |
The value to fill with.
|
Int32 |
count |
|
T |
Marginal |
Dummy argument for inferring marginals.
|
Returns
Type |
Description |
T[] |
A new array with all entries set to value.
|
Type Parameters
Name |
Description |
T |
The type of array element
|
UsesEqualDefGibbs<T>(T, Int32, Int32, Int32, out T, out T, out T)
Declaration
[ParameterNames(new string[]{"Uses", "Def", "count", "burnIn", "thin", "marginal", "samples", "conditionals"})]
public static T[] UsesEqualDefGibbs<T>(T Def, int count, int burnIn, int thin, out T marginal, out T samples, out T conditionals)
Parameters
Type |
Name |
Description |
T |
Def |
|
Int32 |
count |
|
Int32 |
burnIn |
|
Int32 |
thin |
|
T |
marginal |
|
T |
samples |
|
T |
conditionals |
|
Returns
Type Parameters
Variable<T>(T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "marginal"})]
public static T Variable<T>(T def, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
marginal |
|
Returns
Type Parameters
VariableGibbs<T>(T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "marginal"})]
public static T VariableGibbs<T>(T def, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
marginal |
|
Returns
Type Parameters
VariableInit<T>(T, T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "init", "marginal"})]
public static T VariableInit<T>(T def, T init, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
init |
|
T |
marginal |
|
Returns
Type Parameters
VariableMax<T>(T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "marginal"})]
public static T VariableMax<T>(T def, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
marginal |
|
Returns
Type Parameters
VariablePoint<T>(T, out T)
Declaration
[ParameterNames(new string[]{"use", "def", "marginal"})]
public static T VariablePoint<T>(T def, out T marginal)
Parameters
Type |
Name |
Description |
T |
def |
|
T |
marginal |
|
Returns
Type Parameters