Interface KolmogorovSmirnovDistribution.One.ScaledPower

Enclosing class:
KolmogorovSmirnovDistribution.One

static interface KolmogorovSmirnovDistribution.One.ScaledPower
Defines a scaled power function. Package-private to allow the main sf method to be called direct in testing.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.numbers.core.DD
    pow(org.apache.commons.numbers.core.DD x, int n, long[] exp)
    Compute the number x raised to the power n.
  • Method Details

    • pow

      org.apache.commons.numbers.core.DD pow(org.apache.commons.numbers.core.DD x, int n, long[] exp)
      Compute the number x raised to the power n.

      The value is returned as fractional f and integral 2^exp components.

       (x+xx)^n = (f+ff) * 2^exp
       
      Parameters:
      x - x.
      n - Power.
      exp - Result power of two scale factor (integral exponent).
      Returns:
      Fraction part.
      See Also:
      • DD.frexp(int[])
      • DD.pow(int, long[])
      • DDMath.pow(DD, int, long[])