public class Minimum extends AssociativeOperation
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
MINIMUM_STRING_REPRESENTATION |
Constructor and Description |
---|
Minimum(java.util.List<Term> terms)
Creates a new minimum with the given list of terms.
|
Minimum(Term first,
Term second)
Creates a new minimum with the given terms.
|
Modifier and Type | Method and Description |
---|---|
Term |
derive(Variable v)
Differentiates the term with respect to the given variable.
|
void |
expandAssociativeOperations()
This method expands all associative operations appearing
in this term, e.g.
|
java.util.Set<Maximum> |
getMaximums()
Returns all maximums of this term.
|
java.util.Set<Minimum> |
getMinimums()
Returns all minimums of this term.
|
boolean |
isContinuous(Variable v)
Checks whether this term is continuous in v.
|
Term |
replaceTerm(Term toSubstitute,
Term substitution)
Replaces each occurrence of "toSubstitute" by "substitution" and
return the new term.
|
Term |
simplify()
Simplifies this term in an equivalent way:
- Replaces products that contain a zero by the constant zero - Removes a term one from products - Removes a term zero from sums - Aggregates constants in sums, products, and minimums - Evaluates functional terms on constants - Simplifies fractions where possible. |
Sum |
toLinearForm()
Converts this term into a linear normal form, i.e.
|
java.lang.String |
toString() |
Constant |
value()
Computes the actual value of this term if it contains no variables.
|
addAllTerm, addTerm, collapseAssociativeOperations, getAbsoluteValues, getProducts, getTerms, getVariables, isInteger, removeTerm, size
add, doubleValue, evaluateMatrix, evaluateVector, evaluateVector, isContinuous, isLinear, min, minus, mult, replaceAllTerms, replaceAllTerms
private static final java.lang.String MINIMUM_STRING_REPRESENTATION
public Minimum(Term first, Term second)
first
- a term.second
- a term.public Minimum(java.util.List<Term> terms)
terms
- a list of terms.public Constant value()
Term
public Term replaceTerm(Term toSubstitute, Term substitution)
Term
replaceTerm
in class Term
toSubstitute
- the term to be substitutedsubstitution
- the new termpublic java.util.Set<Minimum> getMinimums()
Term
getMinimums
in class AssociativeOperation
public void expandAssociativeOperations()
Term
expandAssociativeOperations
in class Term
public Sum toLinearForm() throws java.lang.IllegalArgumentException
Term
toLinearForm
in class Term
java.lang.IllegalArgumentException
- if this term cannot be
converted into a linear normal form.public Term derive(Variable v) throws NonDifferentiableException
Term
derive
in class Term
v
- a variable.NonDifferentiableException
- if the term cannot be
differentiated.public Term simplify()
Term
public boolean isContinuous(Variable v)
Term
isContinuous
in class Term
public java.util.Set<Maximum> getMaximums()
Term
getMaximums
in class AssociativeOperation