Struct ConstantVector
A vector which has a constant value between its start and end indices.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[DataContract]
public struct ConstantVector : IComparable
Constructors
ConstantVector(Int32, Int32, Double)
Declaration
[Construction(new string[]{"Start", "End", "Value"})]
public ConstantVector(int start, int end, double value)
Parameters
Properties
Count
The number of elements in this vector
Declaration
public readonly int Count { get; }
Property Value
End
Declaration
[DataMember]
public int End { get; set; }
Property Value
Start
Declaration
[DataMember]
public int Start { get; set; }
Property Value
Value
Declaration
[DataMember]
public double Value { get; set; }
Property Value
Methods
CompareTo(Object)
Compares this constant vector to another one.
Declaration
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Contains(Int32)
True if the index lies inside this vector.
Declaration
public bool Contains(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
ToString()
String representation of this constant vector.
Declaration
public override string ToString()
Returns
Overrides
ToString(String, Func<Int32, String>)
String representation of this constant vector using the supplied value format
and function for converting ints to strings.
Declaration
public string ToString(string format, Func<int, string> intToString)
Parameters
Returns
Implements