1
I can not return the predictions vector, 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;
}
What error appears? ask the question
– Costamilam
incompatible Types
– Wesley
How do you want to return a vector of
double
if your method signature returns only onedouble
?– Zulian