Class ConstantFunction
Class implementing the constant function. Used as a domain prototype
for distributions over functions
Inheritance
ConstantFunction
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
[DataContract]
public class ConstantFunction : IFunction
Constructors
ConstantFunction()
Constructor for constant function - default value is 0.0
Declaration
public ConstantFunction()
ConstantFunction(Double)
Constructor for constant function
Declaration
[Construction(new string[]{"ConstantValue"})]
public ConstantFunction(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Properties
ConstantValue
The constant value of the function
Declaration
public double ConstantValue { get; set; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Evaluate(Vector)
Declaration
public double Evaluate(Vector X)
Parameters
Type |
Name |
Description |
Vector |
X |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Equality(ConstantFunction, ConstantFunction)
Checks if left
object is equal to right
.
Declaration
public static bool operator ==(ConstantFunction left, ConstantFunction right)
Parameters
Returns
Inequality(ConstantFunction, ConstantFunction)
Checks if left
object is not equal to right
.
Declaration
public static bool operator !=(ConstantFunction left, ConstantFunction right)
Parameters
Returns
Implements