xf和x0是数组中的数据么
list xf = new ArrayList();int x0 = ;double result =0D;for(int i=1;i<=N;i++){result+=list.get(i-1)-x0}result=result/xf.length()