Dear all,
We want to provide an interface for all vectors with numeric types (small
int, float4, float8, etc). This interface will make it convenient for many
operations on a vector, like average, sum, variance, etc. With this
interface, the client code will be greatly simplified, with many
branches/switch removed.
The design is similar to BaseIntVector (the interface for all integer
vectors). We provide 3 methods for setting & getting numeric values:
setWithPossibleRounding
setSafeWithPossibleRounding
getValueAsDouble
Please give some comments. Thanks a lot.
Best,
Liya Fan