Class ComparablePredicate

  • All Implemented Interfaces:
    java.lang.Comparable<ComparablePredicate>

    public class ComparablePredicate
    extends java.lang.Object
    implements java.lang.Comparable<ComparablePredicate>
    A maxent predicate representation which we can use to sort based on the outcomes. This allows us to make the mapping of features to their parameters much more compact.
    • Field Detail

      • name

        public java.lang.String name
      • outcomes

        public int[] outcomes
      • params

        public double[] params
    • Constructor Detail

      • ComparablePredicate

        public ComparablePredicate​(java.lang.String n,
                                   int[] ocs,
                                   double[] ps)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object