Class AxisSplitRuleMax

java.lang.Object
org.ddogleg.nn.alg.AxisSplitRuleMax
All Implemented Interfaces:
AxisSplitRule

public class AxisSplitRuleMax
extends Object
implements AxisSplitRule
Selects the axis with the largest variance to split.
  • Constructor Details

    • AxisSplitRuleMax

      public AxisSplitRuleMax()
  • Method Details

    • setDimension

      public void setDimension​(int N)
      Description copied from interface: AxisSplitRule
      Specifies the point's dimension
      Specified by:
      setDimension in interface AxisSplitRule
      Parameters:
      N - dimension
    • select

      public int select​(double[] var)
      Description copied from interface: AxisSplitRule
      Selects the index for splitting using the provided variances. The input list can be modified.
      Specified by:
      select in interface AxisSplitRule
      Parameters:
      var - List of variances for each dimension in the point
      Returns:
      The selected split axis