Package jline.api.fj

Class FJ_harmonicKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Double fj_harmonic(Integer K) Compute Harmonic sum H_K = sum(1/k) for k=1 to K.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • fj_harmonic

         final static Double fj_harmonic(Integer K)

        Compute Harmonic sum H_K = sum(1/k) for k=1 to K.

        Parameters:
        K - Number of parallel servers (positive integer)
        Returns:

        Harmonic sum H_K = 1 + 1/2 + 1/3 + ... + 1/K