Put math constants in namespace, add size accessor for SampleAccumulator