Package org.ddogleg.nn.alg
Class AxisSplitRuleRandomK
java.lang.Object
org.ddogleg.nn.alg.AxisSplitRuleRandomK
- All Implemented Interfaces:
AxisSplitRule
Randomly selects the larger variances. The list is sorted so that the K largest variances are known. It then
selects one of those randomly
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
select
(double[] variance) Selects the index for splitting using the provided variances.void
setDimension
(int N) Specifies the point's dimension
-
Constructor Details
-
AxisSplitRuleRandomK
-
-
Method Details
-
setDimension
public void setDimension(int N) Description copied from interface:AxisSplitRule
Specifies the point's dimension- Specified by:
setDimension
in interfaceAxisSplitRule
- Parameters:
N
- dimension
-
select
public int select(double[] variance) Description copied from interface:AxisSplitRule
Selects the index for splitting using the provided variances. The input list can be modified.- Specified by:
select
in interfaceAxisSplitRule
- Parameters:
variance
- List of variances for each dimension in the point- Returns:
- The selected split axis
-