Interface CanCopyWithAllElementsSetTo<T, TDist>
Whether the distribution supports creating copies with all elements set to duplicates of the same value.
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Quality(QualityBand.Experimental)]
public interface CanCopyWithAllElementsSetTo<in T, out TDist>
Type Parameters
| Name | Description |
|---|---|
| T | Type of the element. |
| TDist | Type of the distribution. |
Methods
WithAllElementsSetTo(T)
Creates a copy of the current distribution with all elements set to duplicates of the given value.
Declaration
TDist WithAllElementsSetTo(T value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | The value of all elements of the new distribution. |
Returns
| Type | Description |
|---|---|
| TDist | The created distribution. |