public double phi ( ) { long latestHeartbeat = history . latestHeartbeatTime ( ) ; DescriptiveStatistics samples = history . samples ( ) ; if ( samples . getN ( ) < minSamples ) { return 0.0 ; } return computePhi ( samples , latestHeartbeat , System . currentTimeMillis ( ) ) ; }
Compute phi for the specified node id .