
public final class ModelUtil extends Object
| Constructor and Description |
|---|
ModelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static NumberVector |
getPrototype(Model model,
Relation<? extends NumberVector> relation)
Get (and convert!)
|
static <V extends NumberVector> |
getPrototype(Model model,
Relation<? extends V> relation,
NumberVector.Factory<V> factory)
Get (and convert!)
|
public static <V extends NumberVector> V getPrototype(Model model, Relation<? extends V> relation, NumberVector.Factory<V> factory)
null is returned when the model is not supported!V - desired vector typemodel - Modelrelation - Data relation (for representatives specified per DBID)factory - Vector factory, for type conversion.null if not supported.public static NumberVector getPrototype(Model model, Relation<? extends NumberVector> relation)
null is returned when the model is not supported!model - Modelrelation - Data relation (for representatives specified per DBID)NumberVector, null if not supported.Copyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.