|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.dcs.renaissance.iqir.query.Mixture
public class Mixture
Represents a mixture
Constructor Summary | |
---|---|
Mixture(boolean superposition)
|
Method Summary | |
---|---|
void |
add(Operator operator)
|
void |
addINSamplingQueries(Set<String> set)
Add the queries that will be used to compute base densities. |
void |
addTerms(Set<String> set)
Add the terms |
void |
applyToSuboperators(OperatorTransformer transformer)
Apply the transformation to all sub-operators |
WeightedVectorSet |
compute(boolean needsSum,
bpiwowar.log.TaskTimer timer)
Computes the density. |
Mixture |
copy()
Deep copy of this operator |
Iterable<Operator> |
getSubOperators()
Get all the suboperators (used to process recursively all the nodes of a query). |
void |
init(Informations informations)
Initialise this operator so as to prepare computation |
boolean |
isEmpty()
|
boolean |
isNull()
Returns true if the density is null (e.g., stopped term). |
boolean |
isSuperposition()
|
Operator |
simplify()
Simplify this operator (calls simplify recursively). |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mixture(boolean superposition)
Method Detail |
---|
public boolean isSuperposition()
public boolean isEmpty()
public void add(Operator operator)
public String toString()
toString
in class Object
public WeightedVectorSet compute(boolean needsSum, bpiwowar.log.TaskTimer timer) throws Throwable
Operator
Operator.init(Informations)
compute
in interface Operator
needsSum
- If the sum of vectors is neededtimer
- A timer to give information about the task progress
Throwable
- if something goes wrongpublic Operator simplify()
Operator
Operator.init(Informations)
simplify
in interface Operator
public boolean isNull()
Operator
Operator.init(Informations)
isNull
in interface Operator
public void init(Informations informations)
Operator
init
in interface Operator
public void addTerms(Set<String> set)
Operator
addTerms
in interface Operator
set
- The set of termspublic void addINSamplingQueries(Set<String> set)
Operator
addINSamplingQueries
in interface Operator
set
- The base queries should be added to this setpublic Iterable<Operator> getSubOperators()
Operator
getSubOperators
in interface Operator
public void applyToSuboperators(OperatorTransformer transformer)
Operator
applyToSuboperators
in interface Operator
public Mixture copy()
Operator
copy
in interface Operator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |