Interface SettableToRatio<T, U>
Supports setting an instance to the ratio of two values of different types
Namespace: Microsoft.ML.Probabilistic.Math
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public interface SettableToRatio<in T, in U>
Type Parameters
Name | Description |
---|---|
T | The first type |
U | The second type |
Methods
SetToRatio(T, U, Boolean)
Set this to the ratio of a and b
Declaration
void SetToRatio(T numerator, U denominator, bool forceProper = false)
Parameters
Type | Name | Description |
---|---|---|
T | numerator | |
U | denominator | |
Boolean | forceProper | If true, the result is modified to have parameters in a safe range |