I'm trying to do the AdaBoost algorithm and to obtain the confidence value I used this formula:
Double valorConfianza = (1/2) * (Math.log10(1-tasaErrorMenor/tasaErrorMenor)/Math.log10(2)) ;
But it didn't work so I print the values and it gave me this:
tasaErrorMenor: 0.121837094
valorConfianza: NaN
Why does this happen, if my calculator gives me a normal number?