Class PolynomialGenerator


  • public class PolynomialGenerator
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IntegerPolynomial generateRandom​(int N, int q)
      Creates a random polynomial with N coefficients between 0 and q-1.
      • Methods inherited from class java.lang.Object

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

      • PolynomialGenerator

        public PolynomialGenerator()
    • Method Detail

      • generateRandom

        public static IntegerPolynomial generateRandom​(int N,
                                                       int q)
        Creates a random polynomial with N coefficients between 0 and q-1.
        Parameters:
        N - length of the polynomial
        q - coefficients will all be below this number
        Returns:
        a random polynomial