public class ScalesResult extends BasicResult
Modifier and Type | Field and Description |
---|---|
private LinearScale[] |
scales
The scales in use.
|
Constructor and Description |
---|
ScalesResult(LinearScale[] scales)
Constructor.
|
ScalesResult(Relation<? extends SpatialComparable> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
LinearScale |
getScale(int dim)
Get the scale for dimension dim (starting at 1!).
|
LinearScale[] |
getScales()
Get all scales.
|
static ScalesResult |
getScalesResult(Relation<? extends SpatialComparable> rel)
Get (or create) a scales result for a relation.
|
void |
setScale(int dim,
LinearScale scale)
Set the scale for dimension dim (starting at 1!).
|
getLongName, getShortName
addChildResult, getHierarchy, setHierarchy
private LinearScale[] scales
public ScalesResult(Relation<? extends SpatialComparable> relation)
relation
- Relation to usepublic ScalesResult(LinearScale[] scales)
scales
- Relation scales to usepublic LinearScale getScale(int dim)
dim
- Dimensionpublic void setScale(int dim, LinearScale scale)
dim
- Dimensionscale
- New scalepublic LinearScale[] getScales()
public static ScalesResult getScalesResult(Relation<? extends SpatialComparable> rel)
rel
- RelationCopyright © 2019 ELKI Development Team. License information.