|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.dcs.renaissance.iqir.query.Projection
public class Projection
Projects a density into a fuzzy subspace
| Constructor Summary | |
|---|---|
Projection(Operator operator,
Operator subspace,
boolean orthogonal)
|
|
| Method Summary | |
|---|---|
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. |
Operator |
copy()
Deep copy of this operator |
Operator |
getOperator()
|
Iterable<Operator> |
getSubOperators()
Get all the suboperators (used to process recursively all the nodes of a query). |
Operator |
getSubspace()
|
void |
init(Informations informations)
Initialise this operator so as to prepare computation |
boolean |
isNull()
Returns true if the density is null (e.g., stopped term). |
boolean |
isOrthogonal()
|
void |
setOperator(Operator operator)
|
void |
setSubspace(Operator subspace)
|
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 Projection(Operator operator,
Operator subspace,
boolean orthogonal)
| Method Detail |
|---|
public boolean isOrthogonal()
public String toString()
toString in class Object
public WeightedVectorSet compute(boolean needsSum,
bpiwowar.log.TaskTimer timer)
throws Throwable
OperatorOperator.init(Informations)
compute in interface OperatorneedsSum - If the sum of vectors is neededtimer - A timer to give information about the task progress
Throwable - if something goes wrongpublic Operator simplify()
OperatorOperator.init(Informations)
simplify in interface Operatorpublic boolean isNull()
OperatorOperator.init(Informations)
isNull in interface Operatorpublic void init(Informations informations)
Operator
init in interface Operatorpublic void addTerms(Set<String> set)
Operator
addTerms in interface Operatorset - The set of termspublic void addINSamplingQueries(Set<String> set)
Operator
addINSamplingQueries in interface Operatorset - The base queries should be added to this setpublic Iterable<Operator> getSubOperators()
Operator
getSubOperators in interface Operatorpublic void applyToSuboperators(OperatorTransformer transformer)
Operator
applyToSuboperators in interface Operatorpublic void setOperator(Operator operator)
operator - the operator to setpublic Operator getOperator()
public void setSubspace(Operator subspace)
subspace - the subspace to setpublic Operator getSubspace()
public Operator copy()
Operator
copy in interface Operator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||