|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.result.ResultUtil
public class ResultUtil
Utilities for handling result objects
Constructor Summary | |
---|---|
ResultUtil()
|
Method Summary | ||
---|---|---|
static MultiResult |
ensureMultiResult(Result result)
Ensure the result is a MultiResult, otherwise wrap it in one. |
|
static
|
filterResults(Result r,
Class<?> restrictionClass)
Filter results |
|
static
|
findAnnotationResult(List<AnnotationResult<?>> anns,
AssociationID<T> assoc)
(Try to) find an association of the given ID in the result. |
|
static
|
findAnnotationResult(Result result,
AssociationID<T> assoc)
(Try to) find an association of the given ID in the result. |
|
static List<AnnotationResult<?>> |
getAnnotationResults(Result r)
Collect all Annotation results from a Result |
|
static List<Clustering<? extends Model>> |
getClusteringResults(Result r)
Collect all clustering results from a Result |
|
static List<CollectionResult<?>> |
getCollectionResults(Result r)
Collect all collection results from a Result |
|
static
|
getGlobalAssociation(Result result,
AssociationID<M> meta)
Get first Association from a MultiResult. |
|
static List<IterableResult<?>> |
getIterableResults(Result r)
Return all Iterable results |
|
static List<OrderingResult> |
getOrderingResults(Result r)
Collect all ordering results from a Result |
|
static List<OutlierResult> |
getOutlierResults(Result r)
Collect all outlier results from a Result |
|
static List<SettingsResult> |
getSettingsResults(Result r)
Collect all settings results from a Result |
|
static
|
setGlobalAssociation(MultiResult result,
AssociationID<M> meta,
M value)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultUtil()
Method Detail |
---|
@Deprecated public static final <M> void setGlobalAssociation(MultiResult result, AssociationID<M> meta, M value)
M
- restriction classresult
- Result collectionmeta
- Associationvalue
- Valuepublic static final <M> M getGlobalAssociation(Result result, AssociationID<M> meta)
M
- restriction classresult
- Result collectionmeta
- Association
public static final <T> AnnotationResult<T> findAnnotationResult(Result result, AssociationID<T> assoc)
T
- Association result typeresult
- Result to find associations inassoc
- Association
public static final <T> AnnotationResult<T> findAnnotationResult(List<AnnotationResult<?>> anns, AssociationID<T> assoc)
T
- Association result typeanns
- List of Resultsassoc
- Association
public static List<AnnotationResult<?>> getAnnotationResults(Result r)
r
- Result
public static List<OrderingResult> getOrderingResults(Result r)
r
- Result
public static List<Clustering<? extends Model>> getClusteringResults(Result r)
r
- Result
public static List<CollectionResult<?>> getCollectionResults(Result r)
r
- Result
public static List<IterableResult<?>> getIterableResults(Result r)
r
- Result
public static List<OutlierResult> getOutlierResults(Result r)
r
- Result
public static List<SettingsResult> getSettingsResults(Result r)
r
- Result
public static <C> List<C> filterResults(Result r, Class<?> restrictionClass)
C
- Class typer
- ResultrestrictionClass
- Restriction
public static MultiResult ensureMultiResult(Result result)
result
- Original result
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |