I can not return vector predictions, Android Studio is not accepting. (incompatible Types)
public double MediaMovelSimples(double[] valores) {
int i;
int j;
double[] previsoes = new double[valores.length - 3];
int parametro = 0;
for (i = 0; i < valores.length - 3; i++) {
for (j = parametro; j < parametro + 3; j++) {
previsoes[i] += valores[j];
}
parametro+=1;
}
return previsoes;
}