public class SimpleNode extends Object implements Leaf<SimpleNode>
Constructor and Description |
---|
SimpleNode(float[] p) |
SimpleNode(SimpleNode node) |
Modifier and Type | Method and Description |
---|---|
SimpleNode[] |
createArray(int n) |
float |
distanceTo(SimpleNode o) |
boolean |
equals(SimpleNode o) |
float |
get(int k) |
SimpleNode |
getEntry() |
int |
getNumDimensions() |
boolean |
isLeaf() |
String |
toString() |
public SimpleNode(SimpleNode node)
public SimpleNode(float[] p)
public boolean isLeaf()
isLeaf
in interface Node<SimpleNode>
public boolean equals(SimpleNode o)
public float distanceTo(SimpleNode o)
distanceTo
in interface Leaf<SimpleNode>
public float get(int k)
get
in interface Leaf<SimpleNode>
public SimpleNode[] createArray(int n)
createArray
in interface Leaf<SimpleNode>
public int getNumDimensions()
getNumDimensions
in interface Leaf<SimpleNode>
public SimpleNode getEntry()
getEntry
in interface Leaf<SimpleNode>
Copyright © 2015–2021 Fiji. All rights reserved.