Alpha result is only returning 0. Why?
package javaapplication4;
public class MediaMovelSuavizaçãoExp {
public double CalculoPrevisao(double[] valores){
double[] values = new double[valores.length];
//Calculando o valor de alfa
double alfa = 2 / ( values.length + 1);
return alfa;
}
}