public class DensityTree.Node extends Object
| Modifier and Type | Field and Description |
|---|---|
DensityTree.Bounds |
bounds |
double[][] |
points |
| Constructor and Description |
|---|
Node(double[][] points) |
Node(double[][] points,
int depth) |
| Modifier and Type | Method and Description |
|---|---|
String |
code() |
int |
getDepth() |
DensityTree.Node |
getLeft() |
DensityTree.Node |
getRight() |
DensityTree.Rule |
getRule() |
int |
predict(double[] pt) |
protected DensityTree.Node |
setLeft(DensityTree.Node left) |
protected DensityTree.Node |
setRight(DensityTree.Node right) |
protected DensityTree.Node |
setRule(DensityTree.Rule rule) |
java.util.stream.Stream<DensityTree.Rule> |
split_ortho(int dim) |
void |
split() |
String |
toString() |
@Nonnull public final double[][] points
@Nonnull public final DensityTree.Bounds bounds
public Node(@Nonnull double[][] points)
public Node(@Nonnull double[][] points, int depth)
public int predict(double[] pt)
public String code()
public void split()
public java.util.stream.Stream<DensityTree.Rule> split_ortho(int dim)
@Nullable public DensityTree.Rule getRule()
@Nonnull protected DensityTree.Node setRule(DensityTree.Rule rule)
@Nullable public DensityTree.Node getRight()
@Nonnull protected DensityTree.Node setRight(DensityTree.Node right)
@Nullable public DensityTree.Node getLeft()
@Nonnull protected DensityTree.Node setLeft(DensityTree.Node left)
public int getDepth()
Copyright © 2019 SimiaCryptus Software. All rights reserved.