|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.domain.ProblemEquivalenceClass
public class ProblemEquivalenceClass
Used for generated domains to divide up the problem space for Domain.getReferenceSolution(). See that method for additional details.
Constructor Summary | |
---|---|
protected |
ProblemEquivalenceClass()
|
|
ProblemEquivalenceClass(Problem prototypeProblem,
DoubleCollection weights,
Domain domain)
Creates new ProblemEquivalenceClass. |
|
ProblemEquivalenceClass(Problem prototypeProblem,
DoubleCollection weights,
Domain domain,
double booleanSolutionCutoff)
Creates new ProblemEquivalenceClass. |
Method Summary | |
---|---|
protected Solution |
applyTo(Problem p)
Apply this equivalence class to a given problem, by taking a linear combination of the weights and the problem feature vector. |
protected Solution |
applyTo(Problem p,
double booleanSolutionCutoff)
|
protected double |
applyToHelper(Problem p)
|
boolean |
equals(java.lang.Object other)
Determine if this ProblemEquivalenceClass is equal to another. |
Domain |
getDomain()
Get the domain in which this equivalence class exists. |
Problem |
getPrototypeProblem()
Get the prototype problem for this equivalence class. |
DoubleCollection |
getWeights()
Get the weights for the reference solution associated with this equivalence class. |
protected void |
setDomain(Domain domain)
|
java.lang.String |
toString()
Get a String representation of this ProblemEquivalenceClass. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ProblemEquivalenceClass()
public ProblemEquivalenceClass(Problem prototypeProblem, DoubleCollection weights, Domain domain, double booleanSolutionCutoff)
public ProblemEquivalenceClass(Problem prototypeProblem, DoubleCollection weights, Domain domain)
Method Detail |
---|
public Problem getPrototypeProblem()
public DoubleCollection getWeights()
public Domain getDomain()
protected void setDomain(Domain domain)
protected Solution applyTo(Problem p, double booleanSolutionCutoff)
protected Solution applyTo(Problem p)
protected double applyToHelper(Problem p)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |