Interface DendrogramVisualization.Positions
-
- All Known Implementing Classes:
DendrogramVisualization.HalfPosPositions
,DendrogramVisualization.HalfWidthPositions
- Enclosing class:
- DendrogramVisualization
private static interface DendrogramVisualization.Positions
Compact position storage.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
combine(int o1, int o2, double y3, int o3)
Combine two objects, and return the new X coordinate.double
getX(int o)
Get the X coordinate of an object.double
getY(int o)
Get the Y coordinate of an object.void
set(int off, double x, double height)
Set the initial position
-
-
-
Method Detail
-
set
void set(int off, double x, double height)
Set the initial position- Parameters:
off
- Object offsetx
- X coordinateheight
- Y coordinate
-
getX
double getX(int o)
Get the X coordinate of an object.- Parameters:
o
- Object- Returns:
- X coordinate
-
getY
double getY(int o)
Get the Y coordinate of an object.- Parameters:
o
- Object- Returns:
- Y coordinate
-
combine
double combine(int o1, int o2, double y3, int o3)
Combine two objects, and return the new X coordinate.- Parameters:
o1
- First objecto2
- Second objecty3
- Merge Y coordinateo3
- Resulting cluster number- Returns:
- New X coordinate
-
-