Base:
method
Sum
Microsoft.Data.Analysis.DataFrameColumn.Sum()
16 references to Sum
Microsoft.Data.Analysis (2)
PrimitiveDataFrameColumn.cs (2)
280
return (double)Convert.ChangeType((T)
Sum
(), typeof(double)) / (Length - NullCount);
776
mean = (float)Convert.ChangeType(
Sum
(), typeof(float)) / Length;
Microsoft.Data.Analysis.Tests (14)
DataFrameTests.Computations.cs (2)
362
Assert.Null(column.
Sum
());
369
Assert.Null(column.
Sum
());
PrimitiveDataFrameColumnComputationsTests.cs (12)
41
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
51
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
61
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
71
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
81
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
91
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
101
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
111
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
121
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
131
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
141
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));
151
Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.
Sum
()));