public static double hz2bark(double freqInHz){
  double f=freqInHz / 600;
  return 6 * Math.log(f + Math.sqrt((f * f) + 1));
}

public static double hz2bark ( double freqInHz ) { double f = freqInHz / 600 ; return 6 * Math . log ( f + Math . sqrt ( ( f * f ) + 1 ) ) ; }
since there is no asinh in math , here it is used its definition : asinh ( x ) = ln ( x + sqrt ( x ^ 2 + 1 ) ) this function is used in fft2barkmx ( )
