v1
Brett 2023-02-16 00:08:39 -05:00
parent fa8b67b6c9
commit bd5a2b9277
1 changed files with 1 additions and 5 deletions

View File

@ -583,14 +583,10 @@ namespace blt {
T average(){ T average(){
T total = 0; T total = 0;
int size = 0;
for (int i = 0; i < Size; i++){ for (int i = 0; i < Size; i++){
if (data[i] == m_default)
continue;
total += data[i]; total += data[i];
size++;
} }
return total / size; return total / Size;
} }
~averagizer_o_matic(){ ~averagizer_o_matic(){