Package smile.anomaly

Class IsolationTree

java.lang.Object
smile.anomaly.IsolationTree
All Implemented Interfaces:
Serializable

public class IsolationTree extends Object implements Serializable
Isolation tree.
See Also:
  • Constructor Details

    • IsolationTree

      public IsolationTree(List<double[]> data, int maxDepth, int extensionLevel)
      Constructor.
      Parameters:
      data - the training data.
      maxDepth - the maximum depth of the tree.
      extensionLevel - the extension level.
  • Method Details

    • path

      public double path(double[] x)
      Returns the path length from the root to the leaf node.
      Parameters:
      x - the sample.
      Returns:
      the path length.