Interface AxisSplitRule

All Known Implementing Classes:
AxisSplitRuleMax, AxisSplitRuleRandomK

public interface AxisSplitRule
Selects which axis the data should be split along when given a list of variances.
  • Method Summary

    Modifier and Type Method Description
    int select​(double[] variance)
    Selects the index for splitting using the provided variances.
    void setDimension​(int N)
    Specifies the point's dimension
  • Method Details

    • setDimension

      void setDimension​(int N)
      Specifies the point's dimension
      Parameters:
      N - dimension
    • select

      int select​(double[] variance)
      Selects the index for splitting using the provided variances. The input list can be modified.
      Parameters:
      variance - List of variances for each dimension in the point
      Returns:
      The selected split axis