I have a method through which I can filter rows per multiple of ten i.e. I can filter rows which are nearest to multiple of tens such as 10,20,30 etc in ascending order.Now I wa
To represent it in reverse order do,order by time in your sql query and change the size of buckets to
for (double v : vals) max = Math.max(max, v);
Arrays.sort(vals);
System.out.println("value at vals[0] c "+vals[0]);
double min=vals[0];
int m2=(int) Math.round(min);
int m3=(int) Math.round(max);
**int bucketCount = 1+((m3-m2)/10);
double[] bucket =new double[bucketCount];
double[][] buckets = new double[bucketCount][3];**