public final class SplitCriteria extends Object
Modifier and Type | Method and Description |
---|---|
static double |
entropyConditionedOnRows(double[][] matrix)
Similar to weka.core.ContingencyTables.entropyConditionedOnRows.
|
static double |
entropyOverColumns(double[][] matrix)
Similar to weka.core.ContingencyTables.entropyOverColumns
Does not output entropy, output is modified to make routine faster:
the result is not divided by "total", as the total is a constant
in all operations (subtraction, comparison) performed as a part of
splitting in FastRfTree.
|
static float |
fastLog2(float val)
A fast approximation of log base 2, in single precision.
|
public static double entropyConditionedOnRows(double[][] matrix)
matrix
- the contingency tablepublic static double entropyOverColumns(double[][] matrix)
matrix
- the contingency tablepublic static float fastLog2(float val)
Copyright © 2015–2021 Fiji. All rights reserved.