Class CheckMoments

java.lang.Object
jline.lib.butools.CheckMoments

public final class CheckMoments extends Object
  • Method Details

    • checkMoments

      public static boolean checkMoments(Matrix m, double prec)
      Checks if the given moment sequence is valid in the sense that it belongs to a distribution with support (0,inf). This procedure checks the determinant of Delta_n and Delta_n^(1) according to the Stieltjes moment problem.
      Parameters:
      m - The (raw) moments to check (starts with the first moment). Its length must be odd.
      prec - Entries with absolute value less than prec are considered to be zeros.
      Returns:
      The result of the check.
    • checkMoments

      public static boolean checkMoments(Matrix m)