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