use double[] instead of generic with java.lang.Number