java.io.Serializable
public class HSTreeNode
extends java.lang.Object
implements java.io.Serializable
Constructor | Description |
---|---|
HSTreeNode(double[] min,
double[] max,
int k,
int maxDepth) |
Constructor for an HSTreeNode.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
printNode() |
Prints this node to string and, if it is an internal node, prints its children nodes as well.
|
double |
score(Instance inst,
int sizeLimit) |
If this node is a leaf node or it has a mass profile of less than sizeLimit, this returns the anomaly score for the argument instance.
|
void |
updateMass(Instance inst,
boolean referenceWindow) |
Update the mass profile of this node.
|
void |
updateModel() |
Update the node's model by setting the latest window's mass profile as the reference window's mass profile,
resetting the latest window's mass profile to zero and updating any subordinates nodes' models.
|
public HSTreeNode(double[] min, double[] max, int k, int maxDepth)
min
- the minimum values of the attributes for this node's workspacemax
- the maximum values of the attributes for this node's workspacek
- the depth of this node in the HSTreemaxDepth
- the maximum depth of this HSTreepublic void updateMass(Instance inst, boolean referenceWindow)
inst
- the instance being passed through the HSTree.referenceWindow
- if the HSTree is in the initial reference window: true, else: falsepublic void updateModel()
public double score(Instance inst, int sizeLimit)
inst
- the instance being passed through the treesizeLimit
- the minimum mass profile for a node to calculate the argument instance's anomaly scoreprotected void printNode()
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.