public void tuneMemory(double m){
  if (m == 0)   memoryA=0.0;
 else   memoryA=Math.pow(memoryA,1.0 / m);
}

public void tuneMemory ( double m ) { if ( m == 0 ) memoryA = 0.0 ; else memoryA = Math . pow ( memoryA , 1.0 / m ) ; }
values greater than 1 . 0 ( towards infinite ) increase the memory towards 1 . values smaller than 1 . 0 ( towards zero ) decreases the memory .
