@@ -0,0 +1,324 @@
+package org.psjava.formula;%0A%0Aimport org.psjava.ds.Collection;%0Aimport org.psjava.ds.numbersystrem.DivisableNumberSystem;%0A%0Apublic class Average %7B%0A%0A%09public static %3CT%3E T calc(Collection%3CT%3E a, DivisableNumberSystem%3CT%3E ns) %7B%0A%09%09T sum = Sum.calc(ns, a);%0A%09%09return ns.divide(sum, ns.getByInt(a.size()));%0A%09%7D%0A%0A%09private Average() %7B%0A%09%7D%0A%7D%0A

add a small calc: average