Initializing help system before first use

QPair

  • All Implemented Interfaces:
    java.lang.Comparable<ComparableMapKey2<Variable,​Variable>>

    public final class QPair
    extends ComparableMapKey2<Variable,​Variable>
    Pair of variables in a quadratic expression. Instances of this class are used to represent pairs of variables in quadratic expressions. Variables in this instance are always ordered according to a canonicaly ordering, so (v1,v2) and (v2,v1) will map to the same representation. Instances can represent linear terms as well. In that case var2 is invalid and isLinear() returns true. Instances can also represent constant terms. In that case var1 and var2 are both invalid and isConstant() returns true.
    Since:
    43.00
    • Method Detail

      • isLinear

        public boolean isLinear()
        Test whether this pair represents a linear term.
        Returns:
        true if this instance represents a linear term, false otherwise.
        Since:
        43.00
      • isConstant

        public boolean isConstant()
        Test whether this pair represents a constant term.
        Returns:
        true if this instance represents a constant term, false otherwise.
        Since:
        43.00

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.