public class DensityTree.Node extends Object
Modifier and Type | Field and Description |
---|---|
DensityTree.Bounds |
bounds
The Bounds.
|
double[][] |
points
The Points.
|
Constructor and Description |
---|
Node(double[][] points)
Instantiates a new Node.
|
Node(double[][] points,
int depth)
Instantiates a new Node.
|
Modifier and Type | Method and Description |
---|---|
String |
code()
Code string.
|
int |
getDepth()
Gets depth.
|
DensityTree.Node |
getLeft()
Gets left.
|
DensityTree.Node |
getRight()
Gets right.
|
DensityTree.Rule |
getRule()
Gets rule.
|
int |
predict(double[] pt)
Predict int.
|
protected DensityTree.Node |
setLeft(DensityTree.Node left)
Sets left.
|
protected DensityTree.Node |
setRight(DensityTree.Node right)
Sets right.
|
protected DensityTree.Node |
setRule(DensityTree.Rule rule)
Sets rule.
|
Stream<DensityTree.Rule> |
split_ortho(int dim)
Split ortho stream.
|
void |
split()
Split.
|
String |
toString() |
@Nonnull public final double[][] points
@Nonnull public final DensityTree.Bounds bounds
public Node(@Nonnull double[][] points)
points
- the pointspublic Node(@Nonnull double[][] points, int depth)
points
- the pointsdepth
- the depthpublic int predict(double[] pt)
pt
- the ptpublic String code()
public void split()
public Stream<DensityTree.Rule> split_ortho(int dim)
dim
- the dim@Nullable public DensityTree.Rule getRule()
@Nonnull protected DensityTree.Node setRule(DensityTree.Rule rule)
rule
- the rule@Nullable public DensityTree.Node getRight()
@Nonnull protected DensityTree.Node setRight(DensityTree.Node right)
right
- the right@Nullable public DensityTree.Node getLeft()
@Nonnull protected DensityTree.Node setLeft(DensityTree.Node left)
left
- the leftpublic int getDepth()
Copyright © 2019 SimiaCryptus Software. All rights reserved.