1 write to Elements
Microsoft.ML.Data (1)
Transforms\NormalizeColumnSng.cs (1)
546
Elements
= new List<TType>(startingSize);
28 references to Elements
Microsoft.ML.Data (28)
Transforms\NormalizeColumnSng.cs (28)
553
protected bool HasLeftChild(int elementIndex) => GetLeftChildIndex(elementIndex) <
Elements
.Count;
554
protected bool HasRightChild(int elementIndex) => GetRightChildIndex(elementIndex) <
Elements
.Count;
557
protected TType GetLeftChild(int elementIndex) =>
Elements
[GetLeftChildIndex(elementIndex)];
558
protected TType GetRightChild(int elementIndex) =>
Elements
[GetRightChildIndex(elementIndex)];
559
protected TType GetParent(int elementIndex) =>
Elements
[GetParentIndex(elementIndex)];
563
var temp =
Elements
[firstIndex];
564
Elements
[firstIndex] =
Elements
[secondIndex];
565
Elements
[secondIndex] = temp;
570
Contracts.Check(
Elements
.Count > 0, "Cannot peek with 0 elements");
572
return
Elements
[0];
577
Contracts.Check(
Elements
.Count > 0, "Cannot pop with 0 elements");
579
var result =
Elements
[0];
580
Elements
[0] =
Elements
[
Elements
.Count - 1];
585
Elements
.RemoveAt(
Elements
.Count - 1);
594
Elements
.Add(element);
599
public int Count() =>
Elements
.Count;
626
if (
Elements
[biggerIndex].CompareTo(
Elements
[index]) <= 0)
638
var index =
Elements
.Count - 1;
639
while (!IsRoot(index) &&
Elements
[index].CompareTo(GetParent(index)) > 0)
669
if (
Elements
[smallerIndex].CompareTo(
Elements
[index]) >= 0)
681
var index =
Elements
.Count - 1;
682
while (!IsRoot(index) &&
Elements
[index].CompareTo(GetParent(index)) < 0)