Interface KolmogorovSmirnovDistribution.One.ScaledPower

Enclosing class:
KolmogorovSmirnovDistribution.One
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface static interface KolmogorovSmirnovDistribution.One.ScaledPower
Defines a scaled power function. Package-private to allow the main sf method to be called direct in testing.
Since:
1.1
  • 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[])