@ Override public void generate2Samples ( long [ ] values , String label1 , String label2 , double dividingFactor ) { if ( oldValues . containsKey ( label1 ) && oldValues . containsKey ( label2 ) ) { generateSample ( ( ( double ) ( values [ 0 ] - oldValues . get ( label1 ) ) ) / dividingFactor , label1 ) ; generateSample ( ( ( double ) ( values [ 1 ] - oldValues . get ( label2 ) ) ) / dividingFactor , label2 ) ; } oldValues . put ( label1 , values [ 0 ] ) ; oldValues . put ( label2 , values [ 1 ] ) ; }
float precision required for net io