sbrt.kernel.math
Class HashLinearComb.Term<V>

java.lang.Object
  extended by sbrt.kernel.math.AbstractLinearComb.Term<V>
      extended by sbrt.kernel.math.HashLinearComb.Term<V>
Type Parameters:
V - the variable type.
All Implemented Interfaces:
java.lang.Iterable<V>, LinearComb.Term<V>, Polynomial.Term<V>
Enclosing class:
HashLinearComb<V>

public static class HashLinearComb.Term<V>
extends AbstractLinearComb.Term<V>

This class is a concrete implementation of LinearComb.Term.

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Constructor Summary
HashLinearComb.Term(double coefficient, V variable)
          Constructs a new linear combination term with the provided coefficient and variable.
HashLinearComb.Term(V variable)
          Constructs a new linear combination term with the provided variable.
HashLinearComb.Term(V variable, double coefficient)
          Constructs a new linear combination term with the provided coefficient and variable.
 
Method Summary
 
Methods inherited from class sbrt.kernel.math.AbstractLinearComb.Term
equals, getCoefficient, getVariable, getVariables, hasAllVariables, hashCode, hasVariable, hasVariables, iterator, power, toString, variables
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashLinearComb.Term

public HashLinearComb.Term(double coefficient,
                           V variable)
Constructs a new linear combination term with the provided coefficient and variable.

Parameters:
coefficient - the coefficient of this term.
variable - the variable of this term.

HashLinearComb.Term

public HashLinearComb.Term(V variable,
                           double coefficient)
Constructs a new linear combination term with the provided coefficient and variable.

Parameters:
variable - the variable of this term.
coefficient - the coefficient of this term.

HashLinearComb.Term

public HashLinearComb.Term(V variable)
Constructs a new linear combination term with the provided variable. The coefficient equals 1.

Parameters:
variable - the variable of this term.