private static class DendrogramVisualization.HalfWidthPositions extends java.lang.Object implements DendrogramVisualization.Positions
Modifier and Type | Field and Description |
---|---|
(package private) int |
l
Size
|
(package private) int |
l2
Size
|
(package private) double[] |
xxy
Compact storage of positions.
|
Modifier | Constructor and Description |
---|---|
private |
HalfWidthPositions(int size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
combine(int o1,
int o2,
double y3)
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 d,
double height)
Set the initial position
|
final double[] xxy
final int l
final int l2
private HalfWidthPositions(int size)
size
- Sizepublic void set(int off, double d, double height)
DendrogramVisualization.Positions
set
in interface DendrogramVisualization.Positions
off
- Object offsetd
- X coordinateheight
- Y coordinatepublic double getX(int o)
DendrogramVisualization.Positions
getX
in interface DendrogramVisualization.Positions
o
- Objectpublic double getY(int o)
DendrogramVisualization.Positions
getY
in interface DendrogramVisualization.Positions
o
- Objectpublic double combine(int o1, int o2, double y3)
DendrogramVisualization.Positions
combine
in interface DendrogramVisualization.Positions
o1
- First objecto2
- Second objecty3
- Merge Y coordinateCopyright © 2019 ELKI Development Team. License information.